Analyze · Means

Repeated-Measures ANOVA

One-way repeated-measures (within-subjects) ANOVA: tests whether a continuous response differs across conditions measured on the SAME subjects, with a sphericity (Mauchly) check and Greenhouse–Geis...

In the menus Analyze › Means › Repeated-Measures ANOVA

Also searched as repeated measures anova within subjects anova rm anova repeated measures sphericity mauchly

When to use it

Every subject (person, unit) is measured under EVERY condition, a within-subjects / repeated-measures design (e.g. the same patients measured before, during, and after treatment), and you want to test whether the mean response differs across those conditions.

When not to: The design has missing cells or dropouts (subjects not measured at every condition; use a linear mixed-effects model instead), the response is severely non-normal or ordinal (use the Friedman test), or the groups being compared are actually independent (different subjects in each group) rather than the same subjects repeated across conditions.

Step by step

  1. Open it from the menu

    Click Analyze in the menu bar; under Means choose Repeated-Measures ANOVA.

  2. Fill in the form

    Choose the columns: Subjects (people or units), Conditions (within each subject), What you measured. The form lists only columns whose type fits each field.

  3. Check the options

    The options start at their defaults: Alpha. Change one only when your question needs it.

  4. Run the analysis

    Press Run analysis. The Result Card opens on its Results tab.

What to choose in the form

Fields of the Repeated-Measures ANOVA form
Subjects (people or units) Subject requiredOne categorical or ordered categorical or numeric column. Subject / unit identifier (each level = one subject measured under every condition).
Conditions (within each subject) Within Factor requiredOne categorical or ordered categorical column. The within-subjects factor (the condition), 2+ levels.
What you measured Response requiredOne numeric column. The continuous response measured under each condition.
AlphaSignificance threshold for the F-test. Default: 0.05.

How to read the card

The Results tab starts with what to know first (rows left out, checks that did not pass), then the interpretation in words and the Key Results; charts and assumption checks follow further down. Learn More explains the method in plain words. Read a Result Card covers all four tabs.

What it assumes

Sphericity

If it does not hold: When sphericity is violated (the variances of the pairwise condition differences are not all equal), the uncorrected F-test's p-value is too liberal (too easily significant); a correction (Greenhouse-Geisser, or Huynh-Feldt when epsilon is large) restores approximately the right Type I error rate.

How to check: Mauchly's test of sphericity, reported directly on the card, with the Greenhouse-Geisser and Huynh-Feldt corrected p-values also reported so the corrected result is always available alongside the uncorrected one; automatically reported as satisfied (no test needed) when there are only two conditions, since a single difference variance cannot violate sphericity.

Normality (of residuals, not of the raw data)

If it does not hold: Non-normal residuals make the F-test (corrected or not) approximate rather than exact.

How to check: Shapiro-Wilk on the model residuals (sampled for large n), reported directly on the card.

A worked example

Reaction times measured on 24 participants under three drug doses (placebo, low, high), each participant tested at all three doses.

Result: F(2, 46) = 12.7, p < .001; Mauchly's W = 0.75, chi-square(2) = 6.33, p = .04 (sphericity violated); Greenhouse-Geisser epsilon = 0.84, corrected p < .001 (conclusion unchanged); partial eta-squared = 0.36 (large).

Reaction times differ significantly across the three doses, and although sphericity is technically violated, the Greenhouse-Geisser correction confirms the conclusion holds even after accounting for it; the large partial eta-squared indicates dose explains a substantial share of the variance remaining after individual differences between participants are removed.

From the Statistics Library.

The code tabs

Code gives this analysis as Python, R and MATLAB code (and SAS where the tab offers it), reading the data the way KernelStats did. Export sends the card to a report or to slides. See The Code tab.

Understand the statistics

Ask Oobi

Type one of these into Ask Oobi beside your data:

  • Do reaction times differ across three drug doses measured on the same participants?
  • Explain the repeated-measures ANOVA in plain words.
  • What does sphericity mean?

Last reviewed November 16, 2026.

Report an unclear step