Unit 3 · Compare groups
How to run a one-way ANOVA in SPSS
Run a one-way ANOVA in SPSS, read the ANOVA table, calculate eta squared and report F in APA style.
Quick answer: How do you run a one-way ANOVA in SPSS?
- Click Analyze › Compare Means › One-Way ANOVA.
- Move the outcome into Dependent List and the group variable into Factor.
- Under Options… tick Descriptive and Homogeneity of variance test.
- Under Post Hoc… tick Tukey, then click OK.
Report it in APA style: Teaching method affected scores, F(2, 57) = 6.53, p = .003, η² = .19.
What is a one-way ANOVA?
A one-way analysis of variance (ANOVA) compares the means of three or more independent groups on one Scale outcome. It answers one question: is at least one group mean different from the others?
When to use it
- One grouping variable with three or more levels, such as Lecture, Seminar and Online.
- Different people in each group.
- A Scale outcome.
- If the outcome is ordinal or non-normal, use Kruskal-Wallis.
How it works
ANOVA splits the total variation in scores into two parts: variation between groups (how far group means sit from the overall mean) and variation within groups (how far people sit from their own group mean). F is the ratio of the two mean squares. If groups really don’t differ, F is around 1; a large F means the group differences are big compared with the noise. Eta squared (η² = SS between ÷ SS total) is the proportion of variance explained by group.
Assumptions
- Scale outcome, roughly normal within each group.
- Independent groups.
- Similar variances (Levene’s test). If violated, use Welch’s ANOVA.
Worked example
Teaching method affected exam scores, F(2, 57) = 6.53, p = .003, η² = .19. The ANOVA doesn’t say which groups differ; post hoc tests do that.
Key terms
- Factor
- The grouping variable.
- Levels
- The groups within a factor.
- Sum of squares
- Total squared deviations, split into between and within.
- F ratio
- Mean square between ÷ mean square within.
- Omnibus test
- A test of whether any difference exists, without saying where.
Common mistakes
- Running several t-tests instead of one ANOVA, which inflates false positives.
- Concluding that all groups differ because F is significant.
- Reporting the dfs the wrong way round: between first, then within.
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.
ONEWAY score BY method
/ES=OVERALL
/STATISTICS DESCRIPTIVES HOMOGENEITY
/MISSING ANALYSIS
/POSTHOC=TUKEY ALPHA(0.05).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.
- teaching.savExam scores by teaching method: Lecture, Seminar, Online (N = 60)
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.