Tukey–Kramer, Games–Howell, Dunnett, and Holm, Šidák or Bonferroni comparisons, version 1.0.0
post-hoc-comparisons@1.0.0: this version's equations with their symbols, each constant's value, their sources and whether each was read, a worked example where the record holds one, its level and what it was checked against, the number of cases, and what was not checked. This version's record is not rewritten; a correction is added under Changes.
What this page can and cannot show
Level: Checked against a reference. Reference kind: not recorded. This level uses the apps' wider definition on the levels page.
Not fully recorded, and not independently reviewed. Items marked "Not recorded" are missing from this project's records for the version named. Apart from any worked example shown, the cases and their values are not printed, so a reader cannot re-run these checks. No independent scientist has yet reviewed these methods or checks.
Every version of this method · Every method · What the levels mean
Version 1.0.0
Level: Checked against a reference. Reference kind: not recorded. This level uses the apps' wider definition on the levels page. post-hoc-comparisons@1.0.0
What this page can and cannot show
What was checked
Checked against R 4.4.3 on 22 cases of the 0.11.0 fixture: Tukey–Kramer and Games–Howell p within 1e-7 of R's integral of the studentized range (and within 1e-5 of ptukey and TukeyHSD), intervals within 1e-7 of their half-width; Dunnett p within 1e-6 (multcomp 1.4-32); Holm, Šidák and Bonferroni within 1e-8 (2026-10-13). R only; SciPy not run.
Cases: no case set is linked to post-hoc-comparisons@1.0.0.
Not yet recorded for this version
- Equation: not recorded for post-hoc-comparisons@1.0.0.
- Constants: not recorded for post-hoc-comparisons@1.0.0.
- Worked example: not recorded for post-hoc-comparisons@1.0.0.
- Prediction error: not recorded.
What was not checked
What was not checked: not recorded for post-hoc-comparisons@1.0.0. Its absence does not mean everything was checked.
Changes
2026-11-14-post-hoc-comparisons@1.0.0-1
2026-11-14 · post-hoc-comparisons@1.0.0 · Corrections to our methods
- What was wrong: The Bonferroni and Šidák simultaneous intervals took their t from a per-comparison level formed near 1 (1 − (1 − L)/m, or L^(1/m)) and passed as 0.5 + level/2, so the tail the user asked for had already lost its low digits: t was up to 5.8e-12 off (relative) at level 0.99 with 325 comparisons, and up to 3.3e-10 at 19,900 comparisons (Šidák, df 1), against mpmath at 60 digits.
- Affected: stats_compare_groups and stats_two_way_anova with postHoc 'bonferroni' or 'sidak' (the interval limits; no p, adjusted p or conclusion). Over both methods, levels 0.9, 0.95 and 0.99, 1 to 19,900 comparisons and df 1 to 1e5, t moved by at most 3.3e-10 relative; at level 0.99 with 325 comparisons by about 5e-12. Awaiting the CSO's confirmation of these sizes.
- What changed: Each interval's t is taken from its own tail: Bonferroni (1 − L)/(2m), Šidák −expm1(ln L / m)/2, then the tail quantile. Student's t quantile is now found from its tail α: bisection on I_{df/(df+t²)}(df/2, 1/2)/2 = α for α up to 0.25 and on I_{t²/(df+t²)}(1/2, df/2) = 1 − 2α above, and from df 1e4 the Cornish–Fisher expansion where its last term is below 1e-17 of t. Against mpmath at 60 digits it is within 6.5e-15 relative for α from 1e-12 to 0.49999 and df from 1 to 1e9.
- How it was found: The raising run's full check of 14 November 2026: a second implementation in Python by a separate agent of the same model family disagreed on two α edge cases of the equivalence tool, and the shared routine was then measured against mpmath at 60 digits. Recorded as RAISE-F1 and SCI-918.
- Cases added: stored reference values and its .json (540 rows: both methods, three levels, m 1 to 19,900, df 1 to 1e5, the corner level 0.99 with m 325), held at 1e-12 by stored reference values; the worst is 8.8e-15.
Tools that use it
Cite this version
Tukey–Kramer, Games–Howell, Dunnett, and Holm, Šidák or Bonferroni comparisons. Drybench; post-hoc-comparisons@1.0.0; https://www.drybench.com/methods/m/post-hoc-comparisons/1.0.0 (accessed [date]).