Blog
Analysis made easy

One-way ANOVA with Tukey and Games-Howell

Why not three t-tests, the F test, Tukey HSD vs Games-Howell, η² and ω², and how to write it up.

Skari team6 min

Once there are three groups to compare, a thought tends to come up.

"Can't I just run three t-tests?"

A vs B, B vs C, A vs C… one pair at a time looks simple, but it raises the risk of finding a difference that isn't there. Here is one-way ANOVA and post hoc testing — why you use them, how to read the output and how to write it up.

Why not several t-tests?

One test at the .05 level has a 5% chance of calling a difference real when there is none. Run three separate tests and the chance of that happening at least once climbs to 1 − 0.95³ ≈ 14%. It grows with every extra group.

So you first test all groups at once with ANOVA, and only if there is a difference do you use a post hoc test to see which groups differ.

What one-way ANOVA is

One-way ANOVA tests whether the means of three or more groups, split by one factor, are all equal.

It is called analysis of "variance" because it compares between-group variation (how far apart the means are) with within-group variation (how spread out each group is).

F = between-group mean square (MS) ÷ within-group mean square (MS)

The larger F is, the bigger the differences between group means.

Today's example

ItemDetails
DataToothGrowth, a dataset that ships with R
Subjects60 guinea pigs
GroupsVitamin C dose 0.5 · 1 · 2 mg/day (20 each)
OutcomeTooth length (len)

The question: "Does tooth length differ by vitamin C dose?"

Check the assumptions first

① Independence — each observation belongs to one group only and does not affect the others.

② Normality — check with the Shapiro-Wilk test that the model residuals are close to normal. With small groups that depart a lot, also run the Kruskal-Wallis test.

③ Equal variances — check that groups are similarly spread with Levene's test or the median-based Brown-Forsythe test. If variances differ, replace the F test with Welch's ANOVA, which does not assume equal variances.

Which post hoc test?

A significant F only means "not all groups are the same" — it does not say which ones differ.

  • Similar variances → Tukey HSD
  • Different variances → Games-Howell

Both adjust the p-values for the number of comparisons, so read the p-adj (adjusted p) column.

Effect sizes η² and ω²

η² (eta squared) is the share of total variation explained by the group differences. ω² (omega squared) corrects the slight overestimate η² gives in small samples.

η² = between-group sum of squares ÷ total sum of squares (.01 small · .06 medium · .14 large)

Reading the output

ItemResult
Means0.5 mg 10.61 · 1 mg 19.74 · 2 mg 26.10
Equal variancesBrown-Forsythe p = .528 → equal
ANOVAF(2, 57) = 67.42, p < .001
Effect sizeη² = .70, ω² = .69
  • F(2, 57) — 3 groups − 1 = 2, 60 in total − 3 = 57
  • F = 67.42 — between-group MS 1213.22 ÷ within-group MS 18.00
  • η² = .70 — dose explains 70% of the variation in tooth length, a large effect
  • Welch's ANOVA — F(2, 37.74) = 68.40, same conclusion

Variances are equal, so the post hoc test to read is Tukey HSD.

ComparisonMean difference95% CI
1 mg − 0.5 mg9.130[5.90, 12.36]
2 mg − 0.5 mg15.495[12.27, 18.72]
2 mg − 1 mg6.365[3.14, 9.59]

No interval includes 0 and every p-adj is below .001, so teeth grew longer as the dose went up.

How to write it up

Tooth length in guinea pigs differed significantly by vitamin C dose, F(2, 57) = 67.42, p < .001, η² = .70, ω² = .69. Tukey HSD post hoc tests showed that teeth were significantly longer at 1 mg (M = 19.74) than at 0.5 mg (M = 10.61), and at 2 mg (M = 26.10) than at 1 mg (all p < .001).

Example sentence · the numbers are made up

If you used Welch's ANOVA, report the decimal degrees of freedom as they are, e.g. F(2, 37.74), and name Games-Howell as the post hoc test.

In Skari

In Skari's statistics app, open Comparison → ANOVA → One-Way ANOVA.

Today's example, ToothGrowth, is built into Skari as example data. On the one-way ANOVA start screen pick ToothGrowth and press Start with this data — len and dose drop straight into the variable fields.

The ToothGrowth example data on the one-way ANOVA start screen
The ToothGrowth example data on the one-way ANOVA start screen

The Tooth growth by vitamin C dose example card on the statistics app's start screen opens the same analysis. With your own data, pick an independent variable (groups) and a dependent variable (values).

Try it on the example data

Pick ToothGrowth in One-Way ANOVA

Open one-way ANOVA

One run computes one-way ANOVA and Welch's ANOVA, Tukey HSD and Games-Howell, and η² and ω² together.

The top of the report sums up sample size, the F statistic, the effect size and the largest mean difference as key figures, followed by a paragraph that spells out the result.

Key figures and the results paragraph — example result (three groups A · B · C, 12 each)
Key figures and the results paragraph — example result (three groups A · B · C, 12 each)

Based on a Brown-Forsythe equal-variance check, Skari picks the recommended post hoc test — Tukey HSD or Games-Howell — for the main text and keeps the other for reference.

ANOVA table · effect sizes · Welch's ANOVA · Tukey HSD — same example
ANOVA table · effect sizes · Welch's ANOVA · Tukey HSD — same example

The report's More results: Assumption checks holds Shapiro-Wilk normality for the residuals and each group, plus the Levene and Brown-Forsythe variance tests; the charts show group means (95% CI), box plots, densities and a residual Q-Q plot.

Switch tables to APA under Table style; the report downloads as Word or PDF and tables as Excel.

Wrapping up

The flow of a one-way ANOVA is F test → equal-variance check → post hoc test → effect size. Report it in that order instead of running several t-tests and you cover "which groups differ, and by how much" cleanly. Next time: two-way ANOVA and interactions, for two factors.

Want the theory behind it?The Academy's One-Way ANOVA chapter covers mean squares and F, the ANOVA table and post hoc tests →

Keep reading

Every feature free through Dec 31, 2026

Run the analyses from these posts on your own data