Multiple Comparison and Post Hoc Tests
When an overall one-way analysis of variance (ANOVA) rejects the omnibus null hypothesis, post hoc procedures are required to identify which specific group means differ significantly from one another while controlling the family-wise error rate (α inflation).
Post Hoc Selection Matrix
| Test Name | Approach | When to Use | Characteristics |
|---|---|---|---|
| Bonferroni t-test (Dunn) | Divides α by the total number of comparisons (k). | Few planned comparisons (k ≤ 5). | Highly conservative; lower statistical power for large k. |
| Tukey HSD | Based on studentized range statistic (q). | All pairwise comparisons with equal sample sizes. | Maintains family-wise α at nominal level. |
| Tukey-Kramer | Harmonic mean adjustment of Tukey HSD. | Pairwise comparisons with unequal sample sizes. | Best choice for unbalanced designs with equal variances. |
| Games-Howell | Welch’s degrees of freedom approximation. | Unequal variances and unequal sample sizes. | Robust when homogeneity of variance is violated. |
| Dunnett’s Test | Compares treatment groups strictly against control. | Control vs. treatment screening. | Higher power than Tukey for control-referenced designs. |
| Scheffé’s Method | Based on the omnibus F-distribution. | Complex non-pairwise contrasts and post-data snooping. | Most conservative procedure available. |
| REGWQ (Ryan) | Step-down range test. | Exploratory pairwise comparisons across more than 3 groups. | Balances high statistical power with family-wise error control. |
R Implementation: Pairwise Comparison Example
# Define treatment grouping and clinical outcome vectors
group <- c(4,1,4,4,2,1,2,1,4,3,2,2,3,1,4,3,3,2,2,1,3,4,3,1,4,2,4,3,1,2)
survival_in_month <- c(145,198,122,108,61,82,121,191,191,109,82,74,85,193,65,173,129,107,157,175,173,169,104,2,129,181,189,9,190,70)
# Pairwise t-test with Bonferroni correction
pairwise.t.test(survival_in_month, group, p.adjust.method = "bonferroni")
# Pairwise t-test with Holm-Bonferroni correction (higher power)
pairwise.t.test(survival_in_month, group, p.adjust.method = "holm")
Academic Literature References
- Kucuk, U., et al. (2016). Importance of using proper post hoc test with ANOVA. International Journal of Cardiology, 209, 346.
- Rice, W. R. (1989). Analyzing tables of statistical tests. Evolution, 43(1), 223-225.
- Elliott, A. C., & Hynan, L. S. (2011). A SAS macro implementation of a multiple comparison post hoc test for a Kruskal Wallis analysis. Comput Methods Programs Biomed, 102(1), 75-80.