Repeated measures ANOVA with 2 variables with different levels
10 views (last 30 days)
Show older comments
Hi, I am trying to run a 2 way RMANOVA on this data called RMANOVA_Table_Analysis. I have also attached this dataset.

I am trying to get the main effect of background, color and the interaction between them. This is what I tried, looks like I am making an error in creating the repeated measures model.

Any pointers on how to do this correctly, would be much appreciated!
Accepted Answer
Scott MacKenzie
on 7 Apr 2022
Change
rm = fitrm(dv, 'uniR - texB ~ 1 ', 'WithinDesign', withinDesign);
to
rm = fitrm(dv, 'uniR-texB ~ 1 ', 'WithinDesign', withinDesign);
Apparently, the fitrm function doesn't like the spaces on each side of the dash.
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!