Repeated measures ANOVA with 2 variables with different levels

10 views (last 30 days)
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
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.
  3 Comments
MM
MM on 7 Apr 2022
Thank you for explaining! Makes sense why I get the error.

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!