Confusing documentation for analysis of variance (ANOVA)
2 次查看(过去 30 天)
显示 更早的评论
Reading the documentation for Matlab's repeated-measures ANOVA, I noticed two things that didn't make sense to me (I am reasonably literate in statistics):
1) In this example (the fisheriris dataset), "species" is taken as the predictor variable - however species is a between-subjects factor, not within-subjects!
2) The output of another example for a repeated measures ANOVA lists Group as a within-subjects factor when it too is clearly between-groups.
Also, why is it that all factors' names in that output table end in "time", e.g. "Group:Time"? Is that because most repeated measures are normally measurements done across time? This is really confusing.
Thanks for any help clarifying these points!
0 个评论
回答(1 个)
David Resendes
2017-4-21
RE (1): In this example , observations are irises. The measurement that can vary among different irises is its species, so it should be a predictor variable treated as a between-subjects factor. You seem to be saying that the example treats it as a within-subjects factor. Can you point to the place in the example where species is treated as a within-subjects factor?
RE (2): The link you provided doesn’t take me to another example. However, you might be referring to this example . In this example, the second sentence states that Group is a between-subjects factor, and it is treated as a between-subjects factor in the ANOVA table. Can you point me to the place in this example, or to another example, where a variable called Group is treated as a within-subjects factor?
RE your final question: The description of the first output argument of ranova states:
ranovatbl includes a term representing all differences across the within-subjects factors. This term has either the name of the within-subjects factor if specified while fitting the model, or the name Time if the name of the within-subjects factor is not specified while fitting the model or there are more than one within-subjects factors. ranovatbl also includes all interactions between the terms in the within-subject model and all between-subject model terms.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 ANOVA 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!