Mixed ANOVA
Many studies compare groups over time: patients on different treatments followed up across visits, or students in different programmes tested before and after. A mixed (split-plot) ANOVA analyses both factors together, and its interaction answers the question these designs exist for: did the groups change in different ways?
Three effects
- Between-subjects main effect: do the groups differ, averaging over time?
- Within-subjects main effect: does the outcome change over time, averaging over groups?
- Interaction: does the change over time depend on the group?
Worked example: two treatments vs a control
O’Brien and Kaiser’s (1985) example data (in R’s carData package) follow 16 participants in a control group (n = 5) and two treatments, A (n = 4) and B (n = 7), at pre-test, post-test and follow-up. Each score is the mean of five hourly measurements.
| Group | Pre | Post | Follow-up |
|---|---|---|---|
| Control | 4.20 | 4.00 | 4.40 |
| Treatment A | 5.00 | 6.50 | 7.25 |
| Treatment B | 4.14 | 6.57 | 7.29 |
Analytika’s mixed ANOVA (Type III, matching R’s car::Anova) gives:
| Effect | F | p | Partial η² |
|---|---|---|---|
| Treatment (between) | F(2, 13) = 2.91 | .090 | .31 |
| Time (within) | F(2, 26) = 19.29 | < .001 | .60 |
| Treatment × time | F(4, 26) = 5.43 | .003 | .46 |
Mauchly’s test found no violation of sphericity (W = 0.85, p = .381), so no correction was needed. Levene’s tests at each time point were non-significant (all p > .25).
Interpretation
The significant interaction is the headline. Both treatment groups improved from pre-test to follow-up, while the control group stayed flat. The treatment main effect alone isn’t significant (p = .090), because averaging over time dilutes a difference that only appears after treatment. That’s exactly why the interaction, not the main effect, is the test to focus on.
APA write-up
A 3 (treatment: control, A, B) × 3 (time: pre, post, follow-up) mixed ANOVA showed a treatment × time interaction, F(4, 26) = 5.43, p = .003, η²p = .46. Scores in both treatment groups rose from pre-test to follow-up, while scores in the control group remained stable. Sphericity was not violated, Mauchly’s W = 0.85, p = .381.
With only 4 to 7 people per group, a real study would follow up with simple-effects tests and treat the estimates as imprecise.
Assumptions
- Normal residuals.
- Sphericity for the within factor. Use the Greenhouse-Geisser correction if Mauchly’s test fails.
- Equal variances across groups at each time point (Levene’s test).
- Equal covariance structures across groups (Box’s M, often too sensitive in practice).
Alternatives
With missing time points, unequal spacing, or a continuous time variable, mixed-effects models are more flexible. For two time points only, an ANCOVA on post-test scores adjusting for pre-test is often more powerful.
References
- O’Brien, R. G., & Kaiser, M. K. (1985). MANOVA method for analyzing repeated measures designs: An extensive primer. Psychological Bulletin, 97(2), 316–333.
More in Comparing groups
Run this on your own data
Upload a dataset and ask your question in plain English. Analytika checks the assumptions, picks the test, runs it, and writes the results up in APA format.