Blog
Analysis made easy

Repeated-measures and mixed ANOVA

Within vs between factors, sphericity and Greenhouse-Geisser, the group × time interaction and simple effects.

Skari team7 min

When your data measure the same people several times — before, midway, after — a question comes up.

"Can't I just run a t-test for each pair of time points?"

Separate t-tests for every pair raise the chance of a significant result by luck with each extra test, and they ignore the fact that one person's scores resemble each other. This is what repeated-measures ANOVA and mixed-design ANOVA are for. Here are the difference between them, sphericity, how to read the interaction, and how to write it up.

What repeated-measures ANOVA is

Repeated-measures ANOVA tests whether the means of values measured three or more times on the same subjects differ across time points (or conditions).

Because each person takes part at every time point, each person's own baseline level (individual differences) can be taken out of the error. So with the same sample size it has more power than comparing separate groups.

Within- vs between-subjects factors

  • Within-subjects factor — every person goes through every level (e.g. pre · week 4 · week 8)
  • Between-subjects factor — each person belongs to one level only (e.g. jump-rope group · control group)

With only a within-subjects factor it is a one-way repeated-measures ANOVA; add a between-subjects factor and it becomes a mixed-design ANOVA (split-plot design).

Which analysis?

DataAnalysis
Only 2 time pointsPaired t-test
One group · 3+ time pointsOne-way repeated-measures ANOVA
2+ groups × several time pointsMixed-design ANOVA
Clearly non-normal, small sampleFriedman test
Many missing time points or uneven intervalsLinear mixed-effects model

Today's example

ItemDetails
Subjects48 primary school pupils (anonymised)
Groups8-week jump-rope programme 24 · control 24
MeasuresShuttle-run laps at pre · week 4 · week 8

The data have one row per person and one column per time point.

IDProgrammePreWeek 4Week 8
S02Jump rope374451
S26Control283533

The means by time point came out like this.

  • Jump rope 32.9 → 37.3 → 43.5 laps
  • Control 32.7 → 34.0 → 35.9 laps

Three things in the results table

  • Group main effect — pooling all time points, do the two groups differ?
  • Time main effect — pooling the groups, do the time points differ?
  • Interaction (group × time) — does the pattern of change differ between groups?

In a mixed design, look at the interaction first. The question "did the programme work?" lives right there.

In the example the group main effect was not significant (F(1, 46) = 2.43, p = .126). But the interaction was (F(2, 92) = 7.23, corrected p = .004).

Averaging over the three time points hides the difference, but the slope of change differed between groups. Look only at the main effect and you would have missed the effect.

The assumption to check — sphericity

Repeated measures add an assumption ordinary ANOVA does not have: sphericity. It says the variances of the difference scores for every pair of time points are equal.

  • Mauchly's test — p > .05 means sphericity holds; p < .05 means it is violated
  • If violated, shrink the degrees of freedom by epsilon (ε)
  • ε < .75 → Greenhouse-Geisser; ε close to 1 → Huynh-Feldt
  • With only 2 time points, sphericity does not apply

In the example Mauchly's test showed a violation (χ²(2) = 21.91, p < .001) and ε = .72, so the Greenhouse-Geisser correction was used. The degrees of freedom shrink to 2 × .72 = 1.44 and 92 × .72 = 66.41, and p gets a little larger.

Sphericity concerns only within-subjects effects (time and the interaction), not the group main effect. Also check normality of the residuals and equal variances between groups at each time point (Levene). When sphericity is badly violated, multivariate tests (Wilks etc.), which do not assume it, are often reported alongside.

If the interaction is significant — simple effects and post hoc tests

With a significant interaction, read simple effects instead of main effects.

Simple effectResult
Time effect · jump ropeF(2, 46) = 29.89, p < .001
Time effect · controlF(2, 46) = 2.75, p = .074
Group difference by time pointpre p = .930 · week 4 p = .233 · week 8 p = .009

Only the jump-rope group improved clearly over time, and the gap between groups opened at week 8.

When comparing pairs of time points, apply a multiple-comparison correction such as Bonferroni, Holm or FDR.

Effect size: partial eta squared (η²p)

.01 small · .06 medium · .14 large

The interaction in the example had η²p = .136, a medium effect (close to the .14 mark for large). Always report it with the p-value.

How to write it up

To test the effect of an 8-week jump-rope programme, a programme (jump rope, control) × time (pre, week 4, week 8) mixed-design ANOVA was conducted. Mauchly's test indicated a violation of sphericity (χ²(2) = 21.91, p < .001), so the Greenhouse-Geisser correction (ε = .72) was applied. The programme × time interaction was significant, F(1.44, 66.41) = 7.23, p = .004, η²p = .14. Simple effects showed that shuttle-run laps increased significantly over time in the jump-rope group (F(2, 46) = 29.89, p < .001) but not in the control group (F(2, 46) = 2.75, p = .074). At week 8 the jump-rope group (M = 43.50, SD = 9.40) scored significantly higher than the control group (M = 35.92, SD = 9.69), F(1, 46) = 7.57, p = .009.

Example sentence · the numbers are made up

In Skari

Upload your data to Skari's statistics app and, in the list on the left under Comparison → ANOVA, you will find One-Way RM ANOVA and Mixed Design ANOVA side by side. Each analysis runs Variables → Settings → Validation → Result.

For a mixed design you only pick the subject ID column, the between-subjects factor and the within-subjects measurement (time point) columns.

Pick the subject ID, between-subjects factor and time-point columns — jump-rope example data, 48 pupils
Pick the subject ID, between-subjects factor and time-point columns — jump-rope example data, 48 pupils

In Settings you choose the Significance Level, the Sphericity Correction (None · Greenhouse-Geisser · Huynh-Feldt) and the Post-hoc Method (Bonferroni · Holm · FDR). The sphericity correction defaults to Greenhouse-Geisser.

Significance level, sphericity correction and post hoc method
Significance level, sphericity correction and post hoc method

Try it with your own data

Open Comparison → ANOVA → Mixed Design ANOVA

Open mixed-design ANOVA

The top of the report sums up the interaction's F and η²p and the main effects as key figures, followed by a results paragraph that starts with the interaction.

Key figures and the results paragraph — example result (3 treatment groups × pre · post · follow-up, 16 people)
Key figures and the results paragraph — example result (3 treatment groups × pre · post · follow-up, 16 people)

The report then holds the ANOVA summary table, descriptives by group × time point, simple effects and pairwise comparisons, with within-subjects effects by sphericity correction, multivariate tests, bootstrap CIs for the effect sizes and the sphericity test (Mauchly) under More results.

ANOVA summary · within-subjects effects by sphericity correction · Mauchly's test — same example
ANOVA summary · within-subjects effects by sphericity correction · Mauchly's test — same example

The charts include a profile plot joining each group's means across time points.

Profile plot — lines that are not parallel mean an interaction
Profile plot — lines that are not parallel mean an interaction

The report downloads as Excel, PDF or Word.

If you measured one group several times with no group split, use One-Way RM ANOVA: pick the subject ID and the measurement columns (two or more), and you also get Mauchly's test, Bonferroni pairwise comparisons and polynomial trend analysis.

Wrapping up

The core of repeated-measures analysis is check sphericity → interaction first → unpack it with simple effects. Especially in pre-post designs, remember that the real question is not "did things improve over time?" but "did our group improve more?"

Want the theory behind it?The Academy's Mixed-Design ANOVA chapter covers the group × time interaction and differences in change →

Keep reading

Every feature free through Dec 31, 2026

Run the analyses from these posts on your own data