MATLAB Answers

2-way repeated measures ANOVA

81 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.

  0 Comments

Sign in to comment.

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.

  0 Comments

Sign in to comment.

Sign in to answer this question.