Statistics and research

One-way ANOVA calculator with Tukey HSD

Compare the means of two or more groups: ANOVA table, η² and ω², Welch’s ANOVA, and Tukey–Kramer pairwise intervals with adjusted p-values.

Runs in your browser. What you enter stays on this page and is not uploaded.

Each line is one group. Values separated by spaces or commas.

Results

F4.84609df2, 27p-value0.01591η²0.2641
Effect size η² (= R²)
0.264148
Effect size ω²
0.204079
Pooled SD √MSW
0.62337463
Welch’s ANOVA (unequal variances)
F = 5.18097 on 2 and 17.1284 df, p 0.01739
Conclusion
The group means differ (significant at the 5% level).
Analysis of variance
SourcedfSum of squaresMean squareFp-value
Between groups23.766341.883174.8460878620.01591
Within groups2710.492090.388595925926
Total2914.25843
Groups
GroupnMeanSD
ctrl105.0320.583091
trt1104.6610.793676
trt2105.5260.442573
Tukey HSD, 95% family-wise intervals (critical q = 3.50643)
ComparisonDifferenceLowerUpperqAdjusted p
trt1 − ctrl-0.371-1.06221610.320216051.8820.3909
trt2 − ctrl0.494-0.197216051.18521612.5060.198
trt2 − trt10.8650.173783951.55621614.3880.01201

Tukey–Kramer intervals handle unequal group sizes. Adjusted p-values use the studentized range distribution (Copenhaver and Holland algorithm, accurate to about 1e-7 for 10 or more error df).

Method and limits

How to use it

Put each group on its own line, optionally starting with a name and a colon (“control: 4.2 5.1 …”). The tool gives the ANOVA table, effect sizes, Welch’s ANOVA for unequal variances and Tukey’s pairwise comparisons.

Formulas

  • SSbetween = Σ ni(x̄i − x̄)², SSwithin = ΣΣ(x − x̄i)²; F = (SSbetween/(k − 1)) / (SSwithin/(N − k)); p is the right tail of F(k − 1, N − k).
  • η² = SSbetween/SStotal; ω² = (SSbetween − (k − 1) MSwithin) / (SStotal + MSwithin).
  • Welch’s ANOVA weights each mean by ni/si² (Welch 1951), as R’s oneway.test.
  • Tukey–Kramer: difference ± qα; k, N−k √(MSwithin/2 × (1/ni + 1/nj)); adjusted p from the studentized range distribution (Copenhaver and Holland 1988, as R’s ptukey).

Assumptions and limits

  • Independent observations, roughly normal residuals within groups, and similar variances. If the largest SD is more than about twice the smallest, rely on Welch’s ANOVA; for clearly non-normal data use the Kruskal–Wallis test.
  • Tukey intervals control the family-wise error over all pairs; they are not needed (or appropriate) for planned single contrasts.
  • Studentized range probabilities are accurate to about 1e-7 with 10 or more error degrees of freedom and 1e-5 with 3.

Worked example

R’s PlantGrowth data (dried plant weight, control and two treatments, 10 plants each): F = 4.846 on 2 and 27 df, p = 0.0159, η² = 0.264. Tukey: trt2 − trt1 = 0.865, 95% CI 0.174 to 1.556, adjusted p = 0.0120 — the same as R’s TukeyHSD. The calculator also reproduces the NIST StRD certified ANOVA results for SiRstv and AtmWtAg.

References

Related tools

Share this page

Remind me to visit Contifield

Adds a repeating reminder to your calendar, titled “Contifield Reminder: Visit www.contifield.com”.