Skip to content

Compare several groups

stats_compare_groups

Compares three or more independent groups by one-way ANOVA or the Kruskal-Wallis test.

Runs
Held: built, not on the server yet
Level
Checked against a reference: R 4.4.3

Why it is held. A specific fault has been found in this tool. The next sentence says which inputs it affects and whether it can return a wrong number. It returns some numbers without the unit or the limit needed to read them, and this is being corrected (SCI-832).

Open in Drybench Assay

What it is

Required: unit (independent, technical, unspecified); test (welch, classical, kruskal). Compares three or more independent groups by Welch or classical one-way ANOVA (optional post-hoc table, Brown-Forsythe test, residual normality) or by Kruskal-Wallis (optional Dunn table). Inference opens only for independent units.

Field: Statistics. It is the same calculation as Drybench Assay, called by an AI assistant through the server.

What it does

You give

  • columns (required): One column per group; values in measurement unit, null for blank.
  • unit (required): Experimental unit: 'independent' (biological replicates; opens inference), 'technical', or 'unspecified'.
  • test (required): Omnibus test: 'welch', 'classical', or 'kruskal'.
  • postHoc: Optional post-hoc method ('none' default); for 'kruskal', Dunn adjustment ('holm', 'bonferroni', or 'sidak').
  • control: Optional 0-based index of control column (required for 'dunnett').
  • level: Confidence coverage level for intervals (0.9, 0.95 default, or 0.99).

No request is shown while this tool is held.

Limits

  • Every computed number a reply returns, other than an integer or an exact decimal, is rounded once to 12 significant figures: to the nearest, a change of at most 5 × 10⁻¹² of its value, except that a lower bound is rounded down and an upper bound up, a change of less than 1 × 10⁻¹¹; the method computes, and decides any pass or fail, on the unrounded value.
  • No other limit is recorded for this tool.
Every input, with its units6 inputs
  • columns (required): One column per group; values in measurement unit, null for blank.
  • unit (required): Experimental unit: 'independent' (biological replicates; opens inference), 'technical', or 'unspecified'.
  • test (required): Omnibus test: 'welch', 'classical', or 'kruskal'.
  • postHoc: Optional post-hoc method ('none' default); for 'kruskal', Dunn adjustment ('holm', 'bonferroni', or 'sidak').
  • control: Optional 0-based index of control column (required for 'dunnett').
  • level: Confidence coverage level for intervals (0.9, 0.95 default, or 0.99).

The calculation

3 methods, each with its equations, constants and worked example.

One-way ANOVA: Welch (default) or classical, with η² and ω²one-way-anova@1.0.0

No equation is recorded for this version.

Kind of method: not recorded.

Worked example: not recorded for one-way-anova@1.0.0.

Tukey–Kramer, Games–Howell, Dunnett, and Holm, Šidák or Bonferroni comparisonspost-hoc-comparisons@1.0.0

No equation is recorded for this version.

Kind of method: not recorded.

Worked example: not recorded for post-hoc-comparisons@1.0.0.

post-hoc-comparisons@1.0.0

Kruskal–Wallis with Dunn's test; Friedman with pairwise signed-rank testsrank-groups@1.0.0

No equation is recorded for this version.

Kind of method: not recorded.

Worked example: not recorded for rank-groups@1.0.0.

rank-groups@1.0.0

Sources

No source is recorded for this tool's methods.

How it is checked

Level

Checked against a reference, the lowest of its 3 methods.

Checked against

One-way ANOVA: Welch (default) or classical, with η² and ω²: R 4.4.3 on 22 cases of the 0.11.0 fixture (oneway.test and aov): F, df and η², ω² within 1e-9 relative, p within 1e-8; Brown–Forsythe F within 1e-9 and Shapiro–Wilk on the residuals within 1e-7 (2026-10-13). R only; SciPy not run.

Tukey–Kramer, Games–Howell, Dunnett, and Holm, Šidák or Bonferroni comparisons: 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.

Kruskal–Wallis with Dunn's test; Friedman with pairwise signed-rank tests: R 4.4.3 on 22 cases of the 0.11.0 fixture (kruskal.test, friedman.test, Dunn written from its definition and the pairwise signed-rank with Holm): statistics within 1e-9 relative, p within 1e-8 (2026-10-13). R only; SciPy not run.

Cases

One-way ANOVA: Welch (default) or classical, with η² and ω²: No case set is linked to this version.

Tukey–Kramer, Games–Howell, Dunnett, and Holm, Šidák or Bonferroni comparisons: No case set is linked to this version.

Kruskal–Wallis with Dunn's test; Friedman with pairwise signed-rank tests: No case set is linked to this version.

Hostile inputs

Sent 151 malformed, extreme and misspelt calls. None broke it, and every call with an undeclared argument, or with text in place of a number or a true/false value, was declined with a reason.

Run 2026-11-12-2 of 12 November 2026, server 0.11.0.

Same answer

Called twice and with its arguments in another order, it gave the same result.

Run 2026-11-12-2 of 12 November 2026, server 0.11.0.

Not checked

One-way ANOVA: Welch (default) or classical, with η² and ω²: Not recorded. Its absence does not mean everything was checked.

Tukey–Kramer, Games–Howell, Dunnett, and Holm, Šidák or Bonferroni comparisons: Not recorded. Its absence does not mean everything was checked.

Kruskal–Wallis with Dunn's test; Friedman with pairwise signed-rank tests: Not recorded. Its absence does not mean everything was checked.

Open

A specific fault has been found in this tool. The next sentence says which inputs it affects and whether it can return a wrong number. It returns some numbers without the unit or the limit needed to read them, and this is being corrected (SCI-832).

What this project's records still lack5 things
  • A case worked by hand from the source's equation for all three methods.
  • The equation for all three methods.
  • The constants with their sources for all three methods.
  • A case set linked to this version for all three methods.
  • A record of what was not checked for all three methods.
Changes to its methods1 change
  • 14 November 2026, post-hoc-comparisons@1.0.0: 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.