what test is performed in multcompare when using 'estimate' 'kruskal wallis' to compare group ranks?

6 ビュー (過去 30 日間)
Hello everyone,
I can't find it in the docs.
what test is performed in multcompare when using 'estimate' 'kruskal wallis' to compare group ranks?
[c,m,hdl,names]=multcompare(stats,'estimate','kruskalwallis')
Additionally, is there any way to get p-values for the comparisons of the different groups?
Thanks a lot,
Tobias

回答 (1 件)

Bartlomiej Stepien
Bartlomiej Stepien 2014 年 3 月 24 日
編集済み: Bartlomiej Stepien 2014 年 3 月 24 日
In Matlab 2014a the function multcompare in matrix c returns p-values for the compared groups. See multcompare in Matlab 2014a. The previous versions of Matlab multcompare function doesn't return p-value ;( I also need p-value. I don't find multcompare.m from Matlab 2014a. If you find multcompare.m from Matlab 2014a, you will send me it! Please!
Best regards
  2 件のコメント
María
María 2014 年 8 月 11 日
Hi, I was looking for this script, did you find finally (multcompare.m from Matlab 2014a) Could you send me?, Thanks. Best regards,
Lingyun GUO
Lingyun GUO 2020 年 7 月 10 日
I want to ask
I have 3 sets of data. It has been organized into two columns The first column is basedata; The second column is the grouping basis.
G1(:,1)=rand(30,1);
G1(:,2)=1;
G2(:,1)=rand(32,1);
G2(:,2)=2;
G3(:,1)= rand(30,1);
G3(:,2)=3;
X=[G1;G2;G3]; % size is (92*2).
[P,anovatab,stats] = kruskalwallis(X(:,1),X(:,2));
c2=multcompare(stats);
The answer is:
1 2 -18.21 -2.31 13.60 0.94
1 3 -11.96 4.20 20.36 0.82
2 3 -9.40 6.51 22.41 0.60
In order to verify that the data is accurate, I continued to carry out two separate KW test data.
A= [G1;G2];
[P,anovatab,stats] = kruskalwallis(A(:,1),A(:,2));
c2=multcompare(stats);
The answer is:
1 2 -10.34 -1.35 7.63 0.77
Got the p value of their difference. Why, Which p value can truly reflect the difference between G1 and G2?
I'm looking forward to your reply very much.

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

カテゴリ

Help Center および File ExchangeAnalysis of Variance and Covariance についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by