F-test for the equality of means

2 views (last 30 days)
Hi, how can i test for equality of means for >2 vectors?, Thanks in advance

Accepted Answer

Wayne King
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);

More Answers (1)

Image Analyst
Image Analyst on 13 Oct 2011
There are pretty good discussions on Wikipedia:
  1 Comment
conrad Landis
conrad Landis on 13 Oct 2011
To be more specific, is there a built in matlab function to coduct such a test? ttest and ttest2 just allow testing for max 2 vectors. Thx,

Sign in to comment.

Tags

Community Treasure Hunt

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

Start Hunting!