Two-Way RM-ANOVA (2 within factors)
VerifiedRepeat / Within
Run this test straight away on a free built-in teaching dataset — no data of your own needed — or bring your own. Either opens the guided workspace: variable setup, assumption diagnostics, results with effect sizes and confidence intervals, figures, and APA-ready reporting.
Loading teaching datasets…
Or use your own dataset
Loading your datasets…
Factorial within-subjects ANOVA where the SAME subjects are measured at every level of TWO crossed within-subjects factors.
Tests three F-tests (Factor A main effect, Factor B main effect, A×B interaction), each with a subjects-within-cells error term. Auto-applies Greenhouse-Geisser / Huynh-Feldt sphericity corrections when Mauchly's test rejects on any within-factor with ≥3 levels.
Worked example
Two within-subject factors — do they interact?
A two-way repeated-measures ANOVA tests two within-subject factors and their interaction on the same participants.
A significant A × B within-subject interaction, F(2, 46) = 6.2, p = .004, was found (sphericity held).
A two-way repeated-measures ANOVA showed a significant A × B interaction, F(2, 46) = 6.2, p = .004.
When to use it
- Condition × Time (fully within-subjects)30 athletes complete EVERY combination of (Drink: Water / Sports drink / Caffeine) × (Time: 0min / 30min / 60min post-ingestion) on separate counter-balanced sessions.
- Stimulus type × Difficulty (cognitive / perceptual experiments)24 subjects perform a visual-search task across every combination of (Stimulus: face / object / word) × (Difficulty: easy / medium / hard).
When NOT to — use instead
- One within-factor onlyUse one-way RM-ANOVA — 2-way RM is overkill and the analysis routes are different. → One-Way RM-ANOVA (3+ measurements)
- One between + one within (mixed design)This is mixed (split-plot) ANOVA, not fully within. → Two-Way Mixed ANOVA (1 between \u00d7 1 within)
- Missing within-cells (some subjects miss measurements)RM-ANOVA requires complete cases. → Linear Mixed Effects (LMM) \u2014 clustered / repeated data (ICC, BLUPs)
- Three within-factorsUse the three-way RM-ANOVA with the seven-F-test family. → Three-Way RM-ANOVA (3 within factors)
Hypotheses
Parameter tested: set of cell means {μ_{ij}} and their marginal / interaction decomposition
Assumptions (and what to do if they fail)
Check: Inspect per-cell boxplots; flag points beyond the whiskers.
If violated: Outliers in a cell can inflate within-cell variance and distort the F-tests.
Check: Shapiro-Wilk on residuals.
If violated: Severely non-normal residuals threaten the F-test's Type I error rate.
Check: Mauchly's test per effect; non-significant → sphericity met for that effect.
If violated: When sphericity is violated for an effect, the corresponding F-test's Type I error rate is inflated.
Ready to run a Two-Way RM-ANOVA (2 within factors) on your own data?
Guided setup, automatic assumption checks, effect sizes, figures and an APA write-up.
Run this test →