Unit 10 · Factorial designs
How to run a two-way ANOVA in SPSS
Run a two-way between-subjects ANOVA in SPSS, interpret main effects and interactions, and read profile plots.
Quick answer: How do you run a two-way ANOVA in SPSS?
- Click Analyze › General Linear Model › Univariate.
- Move the outcome into Dependent Variable and both grouping variables into Fixed Factor(s).
- Under Plots… add a profile plot; under Options… tick Estimates of effect size.
- Click OK and read the interaction row first.
Report it in APA style: There was a significant caffeine × sleep interaction, F(1, 76) = 5.00, p = .028, ηp² = .06.
What is a two-way ANOVA?
A two-way (factorial) ANOVA tests two grouping variables at once, such as caffeine and sleep. It gives three results: the main effect of each factor and their interaction, which tells you whether the effect of one factor depends on the level of the other.
When to use it
- Two between-subjects factors, each with two or more levels.
- Every combination of levels (each cell) contains different people.
- A Scale outcome.
How it works
A main effect compares the levels of one factor averaged over the other factor. An interaction means the lines on a profile plot aren’t parallel: for example, sleep loss slows reaction times a lot without caffeine but only a little with it. Interpret a significant interaction first, often with simple effects (the effect of one factor at each level of the other), because main effects can mislead when an interaction is present. Partial eta squared gives an effect size for each effect.
Assumptions
- Scale outcome, roughly normal in each cell.
- Independent observations.
- Equal variances across cells (Levene’s test).
- Reasonably balanced cell sizes help.
Worked example
There was a significant caffeine × sleep interaction, F(1, 76) = 5.00, p = .028, ηp² = .06: sleep deprivation added 60 ms to reaction time without caffeine but only 30 ms with it.
Key terms
- Factorial design
- A design that crosses two or more factors.
- Main effect
- The effect of one factor averaged over the others.
- Interaction
- When one factor’s effect depends on another factor.
- Simple effects
- The effect of one factor at a single level of another.
Common mistakes
- Interpreting main effects without checking the interaction.
- Reading non-parallel lines on a plot as an interaction without the significance test.
How to do it in SPSS
The SPSS syntax
Prefer typing to clicking? Open File › New › Syntax, paste this in, select it and choose Run › Selection. Every dialog's Paste button writes the same kind of code.
UNIANOVA rt BY caffeine sleep
/METHOD=SSTYPE(3)
/PLOT=PROFILE(sleep*caffeine)
/PRINT=ETASQ DESCRIPTIVE HOMOGENEITY
/DESIGN=caffeine sleep caffeine*sleep.Practice data
Download the file used in this lesson and run it yourself in SPSS: you should get the same results as the screens above.
- caffeine.savReaction times by caffeine and sleep condition (N = 80)
Now practise it interactively →
Reading is only half of it. Tap through the real SPSS menus, read the output and pick the right write-up in 6 quick questions, with instant feedback on every answer.
Practice for this lesson is part of Pro, with every unit, unlimited hearts and saved progress.