One-way ANOVA
Shown in the app as one_way_anova. Part of the method reference, under Comparing groups.
When to use
3+ independent groups, continuous outcome, equal variances.
What you provide
- Outcome: one numeric column.
- Group: one categorical column.
Options
Missing data
- Complete case (listwise deletion)
- Mean imputation (single)
- Median imputation (single)
Multiple comparisons
- Not adjustable for this method. Where it makes post-hoc comparisons, the procedure applies its own correction.
Confidence level
Every interval in the result is reported at the level you choose:
- 90%
- 95%
- 99%
Related methods
Alternatives that take the same inputs:
Other methods under Comparing groups:
- Welch's t-test
- Student's t-test
- Paired t-test
- Mann-Whitney U test
- Wilcoxon signed-rank test
- Repeated-measures ANOVA (Greenhouse-Geisser)
- ANCOVA (analysis of covariance)
- Two-way ANOVA (factorial)
Guides that discuss this method
- How to choose a statistical test for your data
- Multiple comparisons: Bonferroni, Holm, or BH
- One-way ANOVA, Welch ANOVA or Kruskal-Wallis?
How to read the output
These methods compare one outcome across three or more independent groups, for example crop yield under four irrigation schedules, or test scores across several schools.
The overall test. The p-value answers one question: is there any difference among the groups? A small p-value does not say which groups differ or by how much. One-way ANOVA assumes equal variances across groups; Welch’s ANOVA does not; the Kruskal-Wallis test works on ranks and does not assume normality.
Effect size. For the two ANOVAs, eta-squared is the proportion of the outcome’s variation that lies between the groups, from 0 to 1. For Kruskal-Wallis, epsilon-squared plays the same role on ranks. Both come with a two-sided confidence interval; the epsilon-squared interval is a seeded bootstrap, so the same data always give the same interval. The reproducible script recomputes the effect size and its interval too.
Groups coded as numbers. A group column stored as numbers (1, 2, 3) is still treated as a set of labels, never as a measurement. When missing values are filled with a mean or median, a missing group code is not filled, because the mean of two codes is not a group; that row is left out instead.
Which groups differ. With three or more groups, Celeus adds pairwise comparisons, each corrected for making several comparisons at once: Tukey’s honestly significant difference after one-way ANOVA, the Games-Howell procedure after Welch’s ANOVA (it does not assume equal variances either), and Dunn’s test after Kruskal-Wallis, where you choose the correction (Holm by default). Read each pair’s adjusted p-value and its effect size together; a pair can differ reliably by a trivial amount.
Options. Every interval of a run (the effect size, the Tukey intervals and each pair’s effect size) uses one confidence level: 90%, 95% (the default) or 99%. The overall test has no one-sided version: it asks whether any group differs, which has no direction.
Sources: Tukey JW (1949), Biometrics 5(2):99-114, doi:10.2307/3001913. Games PA, Howell JF (1976), Journal of Educational Statistics 1(2):113-125, doi:10.3102/10769986001002113. Dunn OJ (1964), Technometrics 6(3):241-252, doi:10.1080/00401706.1964.10490181.
Worked examples
Celeus's result on a published or illustrative dataset, next to an independent computation and, where one exists, a published value. The data themselves are not reproduced here.
datasets::PlantGrowth
- Source: Published dataset distributed with an R package
- Licence: base R (GPL)
- Reference: Dobson (1983), An Introduction to Statistical Modelling (the data); independent computation
| Quantity | Celeus | Independent computation | Published value | Agrees |
|---|---|---|---|---|
| Test statistic | 4.84609 | 4.84609 | - | Yes |
| Degrees of freedom | 2,27 | 2,27 | - | Yes |
| p-value | 0.01591 | 0.01591 | - | Yes |
| Effect size | 0.264148 | 0.264148 | - | Yes |
datasets::InsectSprays (spray coded 1-6)
- Source: Published dataset distributed with an R package
- Licence: base R (GPL)
- Reference: Beall (1942), Biometrika 32(3/4):243-262 (the data); independent computation
| Quantity | Celeus | Independent computation | Published value | Agrees |
|---|---|---|---|---|
| Test statistic | 34.7023 | 34.7023 | - | Yes |
| Degrees of freedom | 5,66 | 5,66 | - | Yes |
| p-value | 3.18258e-17 | 3.18258e-17 | - | Yes |
| Effect size | 0.724439 | 0.724439 | - | Yes |
| Effect size confidence interval | 0.601653, 0.794989 | 0.601653, 0.794989 | - | Yes |
datasets::chickwts
- Source: Published dataset distributed with an R package
- Licence: base R (GPL)
- Reference: Anonymous (1948), Biometrika 35 (the data); independent computation
| Quantity | Celeus | Independent computation | Published value | Agrees |
|---|---|---|---|---|
| Test statistic | 15.3648 | 15.3648 | - | Yes |
| p-value | 5.93642e-10 | 5.93642e-10 | - | Yes |
| Adjusted p-value for each pair of groups | 3.07020e-08, 2.10015e-04, 3.32458e-01, 8.36531e-03, 9.99890e-01, 1.41333e-01, 1.06209e-04, 4.21665e-03, 1.21989e-08, 1.27696e-01, 7.93285e-01, 8.84323e-05, 7.39136e-01, 2.20696e-01, 3.88452e-03 | 3.07020e-08, 2.10015e-04, 3.32458e-01, 8.36531e-03, 9.99890e-01, 1.41333e-01, 1.06209e-04, 4.21665e-03, 1.21989e-08, 1.27696e-01, 7.93285e-01, 8.84323e-05, 7.39136e-01, 2.20696e-01, 3.88452e-03 | - | Yes |
| Lower simultaneous confidence limit, first pair of groups | -225.614 | -225.614 | - | Yes |
| Upper simultaneous confidence limit, first pair of groups | -101.153 | -101.153 | - | Yes |
datasets::airquality (Ozone by Month)
- Source: Published dataset distributed with an R package
- Licence: base R (GPL)
- Reference: Chambers et al. (1983), Graphical Methods for Data Analysis (the data); independent computation
| Quantity | Celeus | Independent computation | Published value | Agrees |
|---|---|---|---|---|
| Test statistic | 8.93089 | 8.93089 | - | Yes |
| Degrees of freedom | 4,148 | 4,148 | - | Yes |
| p-value | 1.73129e-06 | 1.73129e-06 | - | Yes |
| Number of observations | 153 | 153 | - | Yes |
| Effect size | 0.194442 | 0.194442 | - | Yes |
datasets::PlantGrowth (first five plants per group)
- Source: Published dataset distributed with an R package
- Licence: base R (GPL)
- Reference: Dobson (1983), An Introduction to Statistical Modelling (the data); independent computation
| Quantity | Celeus | Independent computation | Published value | Agrees |
|---|---|---|---|---|
| Test statistic | 2.42596 | 2.42596 | - | Yes |
| Degrees of freedom | 2,12 | 2,12 | - | Yes |
| p-value | 0.130374 | 0.130374 | - | Yes |
| Effect size | 0.287915 | 0.287915 | - | Yes |
| Effect size confidence interval | 0.000000, 0.589724 | 0.000000, 0.589724 | - | Yes |
References
- Fisher, R. A. (1925). Statistical Methods for Research Workers. Oliver and Boyd, Edinburgh.