← 2. Comparing groups
Repeated measures ANOVA
Try this analysis →

Repeated Measures Analysis of Variance (ANOVA)

A method that compares measurements taken from the same people or subjects at several time points or under several conditions.

Repeated measuresMeans by time pointSphericityPost hoc comparisons

60708062.4Before69.3Right after75.64 weeks laterSame 36 people ·measured three times

Does the confidence of people who took part in a training program go up right after the training? Does the change last after 4 weeks? If you measured the same people several times, is it fine to simply compare the means of three groups?

In this way, the method for analyzing mean differences in measurements obtained several times from the same participants is repeated measures analysis of variance (Repeated-Measures ANOVA). Because each person serves as their own baseline for comparison, the analysis can take into account the differences each participant already had.

Whereas one-way ANOVA is commonly used to compare the means of independent groups, repeated measures ANOVA reflects the fact that measurements from the same person are related to each other. It is useful for checking change across three or more time points or mean differences across several experimental conditions.

It is used in pre-post follow-up studies in psychology, education and health, in user experience experiments, and in lab studies with repeated measurements. In this article we use a training program example to look at how the analysis works, how to interpret the means and the F test, the sphericity assumption, post hoc comparisons, how it differs from mixed-design analysis, and how to report the results.

SECTION 1

What is repeated measures ANOVA?

When the same subjects are measured several times, it tests whether the means are equal across conditions or time points.

Repeated measures ANOVA measures one continuous dependent variable three or more times on the same participants and tests whether the mean differs by time point or condition. It differs from independent-groups ANOVA in that it evaluates the time effect while taking into account each participant's own mean level.

Key question: Is the change shared by all participants large enough compared with the chance variation within the same person?
SECTION 2

Why do we need repeated measures ANOVA?

Linked observations must not be treated as if they were independent data.

The same person may score low before training and higher right after training and 4 weeks later. If you analyze these data as if they were scores from different groups, you throw away the information that the values from one person are linked. Repeated measures analysis reflects this correlation in a way that fits the study design.

Repeated measures vs. independent-groups comparisonRepeated measures ANOVASame 36 people at all 3 time pointsBeforeAfter4 wksRepeated links within the same participantsIndependent-groups ANOVADifferent people at each time pointBeforeAfter4 wksIndependent groups of participants
Repeated measures link several measurements from the same participants, while in an independent-groups design the participants in each condition are different.
SECTION 3

How does repeated measures ANOVA work?

It separates the time effect from participant differences and residual variation.

① Measure the same participants at every time point

The confidence scores of 36 participants are measured before training, right after training and 4 weeks later. The data can be arranged so that each row is one participant and each column is one time point.

② Find the mean differences between time points

Calculate the mean at each of the three time points, then check how far each is from the grand mean. These differences form the basis of the variation that represents the time effect.

③ Account for each participant's own starting level

Differences in mean level between participants are separated out. So the main test compares the variation remaining within the same participant with the variation due to time point.

④ Test the overall time effect with the F statistic

The F value is obtained by comparing the variation between time points with the residual variation. If the result is significant, you can say that the mean at at least one time point differs from the others, but finding which pairs of time points differ requires further comparisons.

SECTION 4

Real-world example: change in confidence before and after a training program

The scores of the same 36 people are measured repeatedly before, right after and 4 weeks after training.

In this hypothetical example for learning, the confidence scores (0–100) of 36 participants in a job training program were recorded three times. The values below were calculated from generated, reproducible hypothetical data and do not represent the effect of any real training program.

Time pointParticipantsMeanSD
Before training3662.407.48
Right after training3669.317.44
4 weeks later3675.637.59
Does the mean confidence score differ by time point?Same 36 participants · measured three times · hypothetical data for learning40506070809062.4Before training69.3Right after training75.64 weeks laterScore: 0–100 · Points are the sample means at each time point.
The change in mean scores by time point when the same 36 people were surveyed three times. Points are sample means.

The mean was higher right after training than before, and 4 weeks later it was at an even higher level. However, the fact that the means look different does not tell you whether the change is statistically significant.

SECTION 5

How do you read change within the same participants?

Also check individual changes that don't show up in the graph of means.

Even if the group mean increases, not every participant improves by the same amount. Some may increase a lot and some may barely change. Looking at individual change trajectories as well lets you see the variation that the overall mean hides.

The same people are measured repeatedlyExample changes for 12 participants and the overall mean405060708090100BeforeRight after4 weeks later
Individual trajectories of 12 hypothetical participants (gray) and the mean change for all 36 (blue).
SECTION 6

How do you read a repeated measures ANOVA results table?

Look at the F value, degrees of freedom, p-value and effect size together.

EffectFdfpPartial η²
Time point188.51(2, 70)< .0010.843

In these hypothetical data, the effect of time point was F(2, 70) = 188.51, p < .001. Partial η² = 0.843 is an effect size calculated from the time effect and the residual variation. This test result means that the mean at at least one time point differs, not that every pair of time points differs from each other.

Caution: The F test above is the value from a basic repeated measures ANOVA that assumes sphericity. Before actually reporting it, you need to check the sphericity assessment and any necessary degrees-of-freedom correction.
SECTION 7

What is the sphericity assumption?

It is the condition that the variances of the difference scores between time points are equal.

Sphericity is the assumption that, with three or more time points, the variances of the difference scores for all pairs of time points are equal. For example, the variances of the before–right after difference, the before–4 weeks later difference and the right after–4 weeks later difference must be the same. It does not mean that the variances of the scores at each time point must all be the same.

Sphericity is checked with Mauchly's test and similar methods. If the assumption is violated, you can correct the test's degrees of freedom with the Greenhouse–Geisser or Huynh–Feldt method, or consider a suitable alternative model. If there are only two time points, the sphericity problem does not arise.

Check · remedyWhat does it check?
Mauchly's testA statistical test of whether the sphericity assumption is violated
Greenhouse–GeisserConservatively corrects the F test's degrees of freedom when sphericity is violated
Huynh–FeldtAnother degrees-of-freedom correction that can be applied when sphericity is violated
Mixed-effects modelAn alternative for complex correlation structures, irregular measurement intervals and the like
SECTION 8

How do you do post hoc comparisons by time point?

After the overall test, look at which time points differ.

If the overall F test is significant, you can carry out paired comparisons of before–right after, before–4 weeks later and right after–4 weeks later. Because the scores come from the same people, you must use paired-sample comparisons, and since you are comparing several times, apply a multiple comparison correction such as Holm or Bonferroni.

Paired comparisonMean difference (later − earlier)Paired tInterpretation note
Before → right after+6.9210.10Separate multiple comparison correction needed
Before → 4 weeks later+13.2319.82Separate multiple comparison correction needed
Right after → 4 weeks later+6.319.12Separate multiple comparison correction needed

The t values above are comparisons on the hypothetical data for each pair of time points and are statistics before correction. In an actual report where a multiple comparison correction is needed, present adjusted p-values together with confidence intervals.

SECTION 9

How do you interpret the effect size?

The p-value alone can hardly explain the actual size of the change.

Even if a difference is statistically significant, you need to look at the score difference and the effect size together to judge whether it is a practically important change. In repeated measures ANOVA, partial η² is often reported, but depending on the sample and design, generalized η² and others may also be examined.

In this example, the mean changed from 62.4 to 75.6 points across time points, so a change of about 13.2 points on the score scale was observed. Present this score difference together with the effect size, but if participants were not randomly assigned, do not conclude that it is the causal effect of the program itself.

SECTION 10

Points to watch in repeated measures ANOVA

Check independence, missing data, outliers, sphericity and whether the design fits, all together.

Independence of observations between participants

Repeated measurements from one participant are linked to each other, but in the basic model observations from different participants must be independent of each other. If the data are clustered in the same team or school, you can account for the additional cluster structure.

Normality and extreme changes

Check the error structure of the basic ANOVA and the distribution of the differences between time points. Also see whether extreme score changes drive the results.

Missing data and dropout

If some participants did not answer the post-training survey, an analysis using only complete cases can be biased. Review the reasons for and patterns of dropout and, if needed, consider a suitable method such as a mixed-effects model.

Sphericity and time intervals

With three or more time points, check the sphericity assumption. If the time points are irregular or the change trajectory itself is the research question, a different longitudinal model may be more suitable.

SECTION 11

How does it differ from other analyses?

What matters is whether the same people are measured repeatedly and whether there is also a group factor.

MethodData structureMain question
Paired-samples t-testTwo time points from the same participantsIs there a mean difference between the two time points?
Repeated measures ANOVAThree or more time points from the same participantsIs there an overall mean difference across time points?
Independent-groups ANOVASeveral groups independent of each otherIs there a mean difference between groups?
Mixed-design ANOVAGroup factor + repeated time pointsDoes the pattern of change over time differ by group?
Linear mixed-effects modelRepeated measures per person · various correlation structuresCan individual differences and time effects be modeled flexibly?

Because this example observed one group three times, repeated measures ANOVA is a suitable starting point. If you were comparing the difference in change over time between a group that received the training and a group that did not, you could consider a mixed-design ANOVA.

SECTION 12

How do you report repeated measures ANOVA results?

Write the descriptive statistics by time point, the overall test, the assumption checks and the post hoc comparisons in that order.

In reporting results, first present the number of participants and time points, and the mean and standard deviation at each time point. Next, report the sphericity test and whether a correction was applied if needed, the F value, degrees of freedom, p-value and effect size. Finally, describe the post hoc comparison results with a multiple comparison correction applied, and the specific mean differences.

Example report sentence

Confidence scores before training, right after training and 4 weeks later were compared for 36 participants in a hypothetical training program. The means at each time point were 62.40, 69.31 and 75.63 points, respectively. A repeated measures analysis of variance assuming sphericity showed a main effect of time point, F(2, 70) = 188.51, p < .001, partial η² = 0.843. In an actual study, the sphericity test results, any necessary degrees-of-freedom correction and the adjusted p-values of the post hoc comparisons should be reported as well.

SECTION 13

Where can repeated measures ANOVA be used?

It is used in studies that compare continuous outcomes measured several times on the same subjects.

FieldRepeated measures exampleMeasure compared
EducationLearning motivation measured before, during and after a courseMean learning motivation
PsychologyStress before, during and after counselingStress score
HealthcareFitness before an exercise program, at 4 weeks and at 8 weeksFitness test score
Product experienceThe same users using three interfacesUsability score
Industry · qualityThree setting conditions on the same machineOutput stability score

The key is a design that measures the same participants under different conditions. For data with a time order, consider learning effects, order effects and maturation effects in addition to simple time-point differences.

✓ Wrap-up

Repeated measures ANOVA is a way to compare change within the same subjects.

Check not only how the overall mean changed but also how consistently that change appears within participants.


In the training program example, the mean confidence scores of the 36 participants were 62.4 before training, 69.3 right after and 75.6 four weeks later. Because the data come from measuring the same participants several times, the observations must not be treated as independent groups. Repeated measures ANOVA evaluates mean differences across time points while taking into account each participant's own score level. When explaining the results, present the F test, the effect size and any necessary post hoc comparisons along with the change in means.

When applying the analysis, look together at the number of time points, independence between participants, sphericity, and missing data and dropout. Even if the overall time effect is significant, you need to check separately which time points differ, and the mere fact that change appeared over time does not let you conclude a causal effect of the training program. To compare patterns of change between groups as well, a mixed-design ANOVA may be more suitable; if the number of measurements or the correlation structure is complex, a mixed-effects model may be.

KEY TAKEAWAY

Repeated measures ANOVA compares three or more continuous measurements obtained from the same participants. Check the overall F test and effect size and, if needed, find which time points differ with post hoc comparisons using a multiple comparison correction. Check sphericity, missing data, individual change and the study design together, and do not claim causation from time-point differences alone.