How can I perform an analysis of variance with a set of repeated measures?

3 views (last 30 days)
I have a set of data where each row is a different subject and each column is a different test done on each subject. I would like to perform an analysis of variance to compare the means for each test. I am not sure if I should use either "ranova" or "manova" analysis. Which is more relevant to my case?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 7 Feb 2020
The analysis is trying to investigate the differences in mean scores under three or more different conditions on the same subjects. Hence, the most relevant analysis would be a repeated measures ANOVA. In MATLAB, this can be done using the "ranova", which allows having just a constant term such that there are no other between-subject predictors. For example:
>> f = fitrm(tCE20,'test_1-test_N~1')
>> tbl = ranova(f)
The regular "manova1" function would not be helpful if there is just one row per group, because we have no way to measure within-group variance.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!