two way repeated measures anova

111 views (last 30 days)
Shamini Warda
Shamini Warda on 23 Jul 2020
Answered: Scott MacKenzie on 28 Jul 2021
how to do a 2 way repeated measures anova with MATLAB? I need to perform a 2 way anova for a repeated measures data, each having 2 levels. I see anova2 is to be used for between subject designs and anovan when the design is unbalanced. Any advice would be of great help.
  4 Comments
Jeff Miller
Jeff Miller on 25 Jul 2020
Different results than what?
You probably want to use the 'categorical' command to tell ranova that the numbers in WithinFactors represent arbitrary category labels rather than numerical values of some predictor.
Shamini Warda
Shamini Warda on 27 Jul 2020
It now works. Thank you very much.

Sign in to comment.

Answers (1)

Scott MacKenzie
Scott MacKenzie on 28 Jul 2021
Visit this question for a simple approach to doing a two-way repeated measures (aka within-subjects) anova using the ranova function.

Products


Release

R2018b

Community Treasure Hunt

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

Start Hunting!