F-test for the equality of means
2 views (last 30 days)
Show older comments
Hi, how can i test for equality of means for >2 vectors?, Thanks in advance
0 Comments
Accepted Answer
Wayne King
on 13 Oct 2011
You can use anova1() to compare the means of two or more groups.
That function returns the F statistic in the optional anovatab argument.
strength = [82 86 79 83 84 85 86 87 74 82 ...
78 75 76 77 79 79 77 78 82 79];
alloy = {'st','st','st','st','st','st','st','st',...
'al1','al1','al1','al1','al1','al1',...
'al2','al2','al2','al2','al2','al2'};
[p,anovatab,stats] = anova1(strength,alloy);
0 Comments
More Answers (1)
See Also
Categories
Find more on ANOVA in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!