How do you calculate observed F using Scheffe's method?

14 次查看(过去 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 个评论
Darla Bonagura
Darla Bonagura 2021-9-30
This is super helpful. Thank you so much! I'm going to work on following the steps from the video.
Scott MacKenzie
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 CenterFile 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!

Translated by