how to perform ANOVA on a matrix
古いコメントを表示
Actually i want to plot the interaction and mean of a matrix by ANOVA. For example I have a matrix like below
X = rand(100,150);
there are 100 samples and 150 columns. I want to perform ANOVA and plot all interaction as well as I want to see which column is statistically significantly different from others.
Can someone help me here?
回答 (2 件)
David Legland
2015 年 9 月 17 日
Hi,
If you want to test whether two column have same mean or not, you can check the ttest or ttest2 functions.
[h12, p12] = ttest2(X(:,1), X(:,2));
You can iterate over pairs of columns to identify which ones gives a positive true value for h_ij, or alternatively check which pairs results in low p-values.
Thorsten
2015 年 9 月 17 日
If you have the Statistics toolbox, check out
multcompare
カテゴリ
ヘルプ センター および File Exchange で Analysis of Variance and Covariance についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!