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
David Legland 2015년 9월 17일

0 개 추천

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.

댓글 수: 1

Niki
Niki 2015년 9월 17일
yes, for sure, but I am searching for interaction and comparison between all columns and rows of the given example matrix. The ttest2 is just for a pair of columns

댓글을 달려면 로그인하십시오.

Thorsten
Thorsten 2015년 9월 17일

0 개 추천

If you have the Statistics toolbox, check out
multcompare

카테고리

도움말 센터File Exchange에서 Analysis of Variance and Covariance에 대해 자세히 알아보기

질문:

2015년 9월 17일

답변:

2015년 9월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by