How do you calculate observed F using Scheffe's method?
4 ビュー (過去 30 日間)
古いコメントを表示
I'm currently conducting some post-hoc ANOVA analyses for my statistics homework (this is not real data). I first conducted an ANOVA to see if there's a difference between 3 groups (Monetary, Bonus, Feelings).
%data input
ingroups = [5,4,6,7,5,6,7,5,5,6;6,7,7,5,7,7,8,6,7,7;7,8,7,7,8,5,6,7,7,7];
Mon = [5 4 6 7 5 6 7 5 5 6];
Bon = [6 7 7 5 7 7 8 6 7 7];
Feel = [7 8 7 7 8 5 6 7 7 7];
%transpose data rows in to columns for anova1
ingroups2 = transpose(ingroups);
%one-way ANOVA (treats columns as separate groups)
[p,tbl,stats] = anova1(ingroups2);
I was able to reject the null hypothesis, F(2) = 6.18, p = 0.0062 , so now I've been asked (in the homework) to conduct a Scheffe's test, along with some others.
To do so, I ran the command below.
[c,m,h,gnames] = multcompare(stats,'CType','scheffe');
Using, https://www.danielsoper.com/statcalc/calculator.aspx?id=4 I computed my critical F-value to be 3.35.
But how do I compute the observed F in order to compare it against my critical F-value to see if the groups significantly differ? My homework specifically asks for the observed F.
I'm a beginner with MATLAB, so I'd appreciate any help.
5 件のコメント
Scott MacKenzie
2021 年 9 月 30 日
You're welcome. BTW, you can compute the observed F-statistics by adding just a few lines to the code in my last comment. All the pieces are there! Good luck.
回答 (0 件)
参考
カテゴリ
Help Center および 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!
