2-way repeated measures ANOVA

19 views (last 30 days)
Pawel Kudzia
Pawel Kudzia on 1 Jul 2017
Answered: Cris LaPierre on 6 Nov 2019
Does a function exist for this analysis in the stats package.
Any advice would be great.

Answers (1)

Cris LaPierre
Cris LaPierre on 6 Nov 2019
I think you could also achieve a 2-way ANOVA using the anova2 function in MATLAB.
There is a good example you can follow here. Take special note of the details given in the "Prepare Data for Balanced Two-Way ANOVA" section.
  • To perform balanced two-way ANOVA using anova2, you must arrange data in a specific matrix form. The columns of the matrix must correspond to groups of the column factor, B. The rows must correspond to the groups of the row factor, A, with the same number of replications for each combination of the groups of factors A and B.

Community Treasure Hunt

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

Start Hunting!