How to print F values for pairwise comparisons using multcompare(stats)?

Hello all,
I have the following code below.
This code produces a matrix of pairwise comparions as expected. I believe that the last column represents P-values for each of these comparisons.
How can I print the F-values for each of these comparisons?
I'd be so grateful if anyone could give me a helping hand!
[p,tbl,stats] = anova1(twT1_SpatialMemory,RELIGIOSITY);
C = multcompare(stats)
C = 1.0000 2.0000 0.0307 0.0893 0.1480 0.0003
1.0000 3.0000 0.0568 0.1393 0.2217 0.0000
1.0000 4.0000 0.0238 0.0788 0.1337 0.0009
1.0000 5.0000 0.0553 0.1181 0.1809 0.0000
2.0000 3.0000 -0.0393 0.0499 0.1392 0.5455
2.0000 4.0000 -0.0754 -0.0106 0.0542 0.9918
2.0000 5.0000 -0.0428 0.0288 0.1003 0.8079
3.0000 4.0000 -0.1474 -0.0605 0.0264 0.3174
3.0000 5.0000 -0.1132 -0.0212 0.0709 0.9708
4.0000 5.0000 -0.0292 0.0394 0.1079 0.5193

 Accepted Answer

You can refer to F-statistic and t-statistic documentation for an example on getting the f statistics.

1 Comment

Is there a way to print the F stat from multcompare if you didn't use mdl?

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!