フィルターのクリア

where to find z score and df in multiple comparison ?

3 ビュー (過去 30 日間)
Sang Hoon Kim
Sang Hoon Kim 2021 年 5 月 8 日
編集済み: Sang Hoon Kim 2021 年 5 月 11 日
Dear
I would like to get z value and degree of freedom in the multiple comparison.
For example,
[p,table,stats] = kruskalwallis(data,groups);
Then, I used multicompare function.
[c,m,h,nms] = multcompare(stats,'alpha',.05,'ctype','dunn-sidak');
1 2 107.358736884486 149.713883016209 192.069029147931 0
1 3 120.836759163490 153.690374387319 186.543989611148 0
2 3 -32.2920513577527 3.97649137111020 40.2450340999731 0.991192034848183
here is the result for c, and 6th column would be p value.
For each comparison, where to get z value?
(z value for 1-2 / 1-3 and 2-3)
I really appreciate it if someone could help.

採用された回答

Scott MacKenzie
Scott MacKenzie 2021 年 5 月 8 日
The degrees of freedom is n -1, when n is the number of columns in the data set:
[p,table,stats] = kruskalwallis(data,groups);
df = size(data,1) - 1 ;
Above, it is calculated from the data. You can also use n from the stats structure:
df = stats.n - 1;
  9 件のコメント
Scott MacKenzie
Scott MacKenzie 2021 年 5 月 11 日
Sorry, but I don't know about this. You might consider posting another question, specifically asking about standardized z-scores from a Kruskal Wallis test. If you do, don't mention degrees of freedom. :)
Sang Hoon Kim
Sang Hoon Kim 2021 年 5 月 11 日
Thanks~!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeHypothesis Tests についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by