MATLAB: How to perform an analysis of variance with a set of repeated measures

ranova

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?

Best Answer

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.