Mixed ANOVA

Statistics
Introduced by
R. A. Fisher (ANOVA framework); split-plot design formalised in agricultural experimentation
Year
1925
Type
Parametric factorial ANOVA

What does it do?

Mixed ANOVA is a parametric factorial analysis of variance that tests at least one between-subjects factor and at least one within-subjects (repeated-measures) factor in a single model.

It extends R. A. Fisher's ANOVA framework and is commonly used for designs in which different groups are each measured across several time points or conditions.

The intuition behind the method

Imagine a clinical trial where two treatment groups (between-subjects) are measured at three time points (within-subjects). You want to know whether the groups differ overall, whether scores change over time for everyone, and — most importantly — whether the pattern of change over time is different between the groups. That last question is the interaction effect: it tells you whether the treatment works differently depending on when you look. Mixed ANOVA answers all three questions in a single model, partitioning the total variance into group-level, time-level, and group-by-time components, each tested against its own appropriate error term.

History

Ronald A. Fisher developed the ANOVA framework in the 1920s. The split-plot design, formalised in agricultural experimentation, is the origin of the alias 'split-plot ANOVA' sometimes given to this design. Field's Discovering Statistics Using IBM SPSS Statistics (5th edition, 2018) is a standard modern reference covering the procedure, including sphericity corrections.

When to use it

Choose Mixed ANOVA when the outcome is a single continuous variable, the data include at least one categorical grouping factor whose levels are separate sets of participants, and at least one factor is repeated within the same participants (time points or conditions). Typical fits are pre-post or follow-up designs with a control and a treatment group, and longitudinal studies that follow groups over time. For pre-post designs, decide before the analysis whether the research question concerns change over time (a mixed ANOVA on change scores) or group differences after adjustment for the pretest (ANCOVA on the posttest), because the two answer different questions. Do not use it when only one group is measured repeatedly (use repeated-measures ANOVA), when the outcome is categorical, or when the repeated observations have substantial missing data that listwise deletion cannot handle well (a mixed-effects model is then more appropriate). Check the assumptions: approximate normality within each cell (for example with Shapiro-Wilk), sphericity of the within-subjects factor once it has more than two levels (Mauchly's test, with Greenhouse-Geisser or Huynh-Feldt correction if violated), homogeneity of variance across between-subjects groups (Levene's test), and independence of observations across participants.

Limitations and considerations

  • The within-subjects and interaction tests assume sphericity, meaning roughly equal variances of the differences between every pair of repeated levels. Violations inflate Type I error unless a correction is applied.
  • Assumes approximate normality within each cell; with small cell sizes, non-normality can distort Type I error rates.
  • Cannot accommodate missing data on the repeated-measures factor without listwise deletion, which reduces power and can introduce bias. Mixed-effects models (e.g. LMM) are preferred when data are missing at random.
  • The interaction effect requires careful interpretation; significant main effects may be misleading when the interaction is present, because a main effect averages over the levels of the other factor. Continuous covariates are not part of the model; ANCOVA, listed as a related method, is the usual extension for that.
  • When the pretest and posttest are on the same scale, change scores in a mixed ANOVA are vulnerable to ceiling and floor effects and skewness. A small interaction may reflect a pretest near the end of the scale rather than the absence of a treatment effect.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Tests the between-subjects effect, the within-subjects effect, and their interaction in one model, so it can show whether change over time differs between groups.
  • Within-subjects comparisons use each participant as their own control, so stable differences between individuals are removed from the within-subjects error term (MS_error(within) in the mechanics). This can make the within-subjects and interaction tests more sensitive than an analysis that ignores the repeated structure.
  • Partial eta-squared is reported for each of the three F tests, so every effect has its own effect size within the same model. Because each effect uses a different error term (see the statistic step), values for different effects should be compared with caution rather than read as a strict ranking of importance.
  • Applies to both randomly assigned groups and pre-existing groups. With pre-existing groups, however, the between-subjects effect describes an association rather than the causal effect of group membership.

Applications

  • Clinical trials comparing a treatment group and a control group on outcomes measured at multiple time points (pre, post, follow-up).
  • Educational research examining whether an instructional intervention produces different learning trajectories across student cohorts over a semester.
  • Rehabilitation studies tracking functional recovery scores across time for groups receiving different therapeutic protocols.
  • Cognitive psychology experiments where participants from different population groups complete trials under multiple conditions.
  • Longitudinal public health studies monitoring biomarkers in exposed and unexposed populations at several waves of data collection.

How it works

How it works

1

Three null hypotheses are tested simultaneously: (1) the between-subjects factor has no main effect — group means, averaged across all time points, are equal; (2) the within-subjects factor has no main effect — measurements averaged across groups are equal across time points or conditions; and (3) there is no interaction — the pattern of change over time does not differ between groups. Each hypothesis has its own F ratio and p-value.

Formula
H_0^{\text{between}}:\ \mu_{A_1} = \mu_{A_2} = \cdots;\ H_0^{\text{within}}:\ \mu_{B_1} = \mu_{B_2} = \cdots;\ H_0^{A \times B}:\ \text{no interaction}
2

The total variance is partitioned into sources that are tested against their respective error terms. The between-subjects F ratio compares variance explained by group membership against between-subjects error (individual differences not accounted for by the group factor). The within-subjects F ratio and the interaction F ratio are both compared against within-subjects error, which reflects residual variability in repeated measurements. Sphericity of the within-subjects factor is assessed with Mauchly's test; if violated, degrees of freedom are corrected using the Greenhouse-Geisser or Huynh-Feldt epsilon.

Formula
F_{\text{between}} = \frac{MS_{\text{between}}}{MS_{\text{error(between)}}},\quad F_{\text{within}} = \frac{MS_{\text{within}}}{MS_{\text{error(within)}}},\quad F_{A\times B} = \frac{MS_{A\times B}}{MS_{\text{error(within)}}}
3

Each F ratio is compared with the critical value of the F distribution for its degrees of freedom, and its p-value is compared with the chosen alpha (commonly 0.05). When the interaction is significant, it is usually interpreted before the main effects, because a main effect averages over the levels of the other factor and may not describe the pattern in any single group. Effect size is reported as partial eta-squared (η²_p = SS_effect / (SS_effect + SS_error), as in the mechanics). It gives the share of variance attributed to each effect after the other sources are set aside, not the share of total variance.

Formula
\text{reject } H_0 \text{ if } p < 0.05;\quad \eta^2_p = \frac{SS_{\text{effect}}}{SS_{\text{effect}} + SS_{\text{error}}}

Common pitfalls

  • Ignoring Mauchly's test and not applying a sphericity correction when it is violated. Report the Greenhouse-Geisser or Huynh-Feldt corrected degrees of freedom.
  • Interpreting main effects in isolation when the interaction is statistically significant. Simple effects (slice analyses) should be reported instead.
  • Omitting effect sizes: always report partial eta-squared for each F test alongside the p-value.
  • Using listwise deletion for missing within-subjects observations without checking whether data are missing completely at random. Consider a linear mixed model when missingness is substantial.
  • Using change scores (posttest minus pretest) in a mixed ANOVA when the pretest sits near the floor or ceiling of the scale, so that a small interaction reflects scale limits rather than the absence of a treatment effect. ANCOVA on the posttest, adjusted for the pretest, is the usual alternative.

Frequently asked questions

What is the difference between Mixed ANOVA and Repeated Measures ANOVA?

Repeated Measures ANOVA has only within-subjects factors: all participants are in the same group. Mixed ANOVA adds at least one between-subjects grouping factor, which allows you to test whether the pattern of change over time (or across conditions) differs between distinct groups. If you have only one group measured repeatedly, use repeated measures ANOVA; if you have two or more groups each measured repeatedly, use Mixed ANOVA.

My Mauchly's test is significant. What should I do?

Apply a sphericity correction to the within-subjects and interaction F tests, and report the corrected degrees of freedom from your software. A common convention, not a fixed rule, is to use Greenhouse-Geisser when epsilon is below 0.75 and Huynh-Feldt when it is above 0.75; Greenhouse-Geisser is the more conservative of the two. Do not ignore the violation, because uncorrected F ratios have inflated Type I error rates.

The interaction is significant. How should I follow it up?

A significant interaction means the effect of one factor depends on the level of the other. Follow it up with simple effects analyses: examine the within-subjects factor separately at each level of the between-subjects factor (or vice versa). Apply appropriate post-hoc corrections (e.g. Bonferroni) to control the familywise error rate across multiple comparisons.

Can I use Mixed ANOVA with more than two groups or more than two time points?

Yes. Mixed ANOVA extends naturally to any number of groups (between-subjects levels) and any number of repeated measurement occasions (within-subjects levels). With more than two levels of the within-subjects factor, sphericity becomes an increasingly important concern and corrections are more likely to be needed. More levels also increase the complexity of interaction interpretation.

Related methods

Sources

  1. Field, A. (2018). Discovering Statistics Using IBM SPSS Statistics (5th ed.). SAGE.

    ISBN: 978-1526419521
  2. Using Multivariate Statistics (5th Edition), p. 222