When to use a repeated-measures ANOVA
Use it when the same participants are measured under three or more conditions or at three or more time points, and the outcome is roughly normal. Because each person is compared with themselves, differences between people drop out of the error term, which usually gives far more power than a between-groups ANOVA. See repeated-measures ANOVA explained.
Worked example
Ten participants rated their anxiety at baseline, after 1 month and after 3 months of a programme. The means fall from 26.0 to 22.2 to 20.4.
- Result: F(2, 18) = 41.02, p < .001, partial η² = .82 (generalized η² = .25).
- Sphericity: Mauchly’s W = .73, p = .291, so no correction is needed. The Greenhouse–Geisser version (ε = .79) gives the same conclusion.
- Post-hoc (Holm): every pair differs. Baseline vs 1 month: 3.8 points, t(9) = 5.02, p = .001. Baseline vs 3 months: 5.6 points, p < .001. 1 month vs 3 months: 1.8 points, t(9) = 3.86, p = .004.
If you wrongly ran an ordinary one-way ANOVA on the same 30 numbers, you would get F(2, 27) = 4.40, p = .022. The repeated-measures analysis is much more sensitive because the large differences between people (some are anxious at every time point) are removed.
Sphericity and the corrections
The test assumes that the differences between every pair of conditions have similar variances (sphericity). When Mauchly’s test is significant, the degrees of freedom are multiplied by ε. The common rule, used here, is Greenhouse–Geisser when ε < .75 and Huynh–Feldt otherwise. With only two conditions, sphericity always holds.
Not normal?
For skewed or ordinal data, such as ratings, use the Friedman test. For two conditions, a paired t-test gives the same result as this ANOVA.
Accuracy
F, p, generalized η², Mauchly’s W and p, and both ε corrections match the Python package pingouin (which follows R’s mauchly.test) on 40 random designs. The paired comparisons match SciPy and statsmodels’ Holm correction.
Frequently asked questions
What is the difference between repeated-measures and one-way ANOVA?
A one-way ANOVA compares different people in each group. A repeated-measures ANOVA measures the same people in every condition and removes the differences between people from the error.
What is sphericity?
The assumption that the variances of the differences between all pairs of conditions are equal. Mauchly's test checks it, and the Greenhouse-Geisser or Huynh-Feldt corrections adjust for it.
Which effect size should I report?
Partial eta squared is the most common, and what SPSS reports. Generalized eta squared is better for comparing across designs. Say which you used.
Can I use it with missing values?
Classical repeated-measures ANOVA needs complete data, so participants with a missing value are left out. For many missing values, a mixed model is better.