Skip to content

BCompare groups · Guide test 053

Steel many to one rank test

Compares several independent treatment distributions with a control using ranks.

Runs in CodeSplashPython (calls R) example not runR example not run Corrected in edition 2

Do it in CodeSplash

In the app, set it up in Analyze with this method:

In Pairwise comparisons (Tukey, Games–Howell, Dunnett, Dunn, Steel–Dwass …), choose Comparison = Steel.

Do it in CodeSplash Run this test on your own data, in Python or R.

Bench

Change the design, drag the data, move α. The statistic, its reference distribution and the verdict follow.

Bench · Steel many to one rank test

4
10
0.65

Group i has true mean (i − 1) × spread.

1.00
0.050

Your data

Drag a point or use ↑/↓ to change it
Group 1mean 0.49Group 2mean 0.88Group 3mean 1.23Group 4mean 1.73

If H₀ were true

|z| = 2.57
  1. The reference: how |z| varies across samples when H₀ is true, the largest of 3 correlated |z| (Steel).
  2. Your statistic, from the data above.
  3. The p-value: the area at least as extreme as yours (p = .028).
  4. The hatched rejection region at α = .050: statistics landing here reject H₀.

The whole family

PairHodges–Lehmann shiftpp adj.
.112.266
.131.304
.010.028

3 comparisons with group 1 (the control); adjusted by Steel's multivariate normal. The highlighted row is the one in the reference pane (the most extreme by default).

The formula

zi=Ui0−nin0/2Var(Ui0),p=P ⁣(max⁡j∣Zj∣≥∣zi∣)z_i=\dfrac{U_{i0}-n_in_0/2}{\sqrt{\mathrm{Var}(U_{i0})}},\quad p = P\!\left(\max_j|Z_j|\ge|z_i|\right)

With your numbers

∣z∣=2.57,padj=0.03|z| = 2.57,\qquad p_{adj} = 0.03
Ui0U_{i0}
Mann–Whitney U of group i against the control
ZjZ_j
correlated normal scores sharing the control

The verdict

|z| = 2.57, p = .028, HL = 1.34

p ≤ α = .050: reject H₀

Effect size: Group 4 − Group 1 (Hodges–Lehmann shift) HL = 1.336

The rank analog of Dunnett: each group against the control by Mann–Whitney, adjusted for the shared control. CodeSplash reports the general p-value: the normal maximum with the shared-control correlation, for any group sizes and both directions. Steel's printed tables cover only balanced designs, one-sided at α = .05.

Statistic
2.570
p-value
0.0280
Steel many to one rank test on Group 1: n = 10; Group 2: n = 10; Group 3: n = 10; Group 4: n = 10: |z| = 2.57, p = .028, HL = 1.34. The p-value is below α = .050, so the data are hard to reconcile with H0.

Steel many to one rank test on Group 1: n = 10; Group 2: n = 10; Group 3: n = 10; Group 4: n = 10: |z| = 2.57, p = .028, HL = 1.34. The p-value is below α = .050, so the data are hard to reconcile with H₀.

Question and hypotheses

H0j: treatment j and the control have identical distributions.

Assumptions

Independent observations and independent groups; ordinal or quantitative measurements. The permutation null is identical group distributions. A location or median interpretation additionally needs comparable distribution shapes.

Formula

Zj=U0j−n0nj/2Var⁡0(U0j)M=max⁡jZj or max⁡j∣Zj∣\begin{gathered}Z_j=\frac{U_{0j}-n_0n_j/2}{\sqrt{\operatorname{Var}_0(U_{0j})}}\\[5pt] M=\max_j Z_j\ \text{or}\ \max_j|Z_j|\end{gathered}

Parameters and notation

Each U0j uses the treatment and control pair; use a maximum matching the prespecified one or two sided alternatives.

Structure of the method

Rank each treatment jointly with a prespecified control and combine the resulting comparisons through a simultaneous many-to-one reference that preserves shared-control dependence. The cited PMCMRplus steelTest implementation is narrower than the general family: it looks up critical rank sums for balanced designs and one-sided alpha-equals-0.05 inference rather than returning general p-values.

Estimated and nuisance parameters

Computed quantities are treatment/control pairwise rank sums and design-specific critical values. The common control identity and balanced sample size are specified design inputs. There is no pooled raw-data variance. Shared control observations induce dependence among all comparisons and must remain shared in any resampling construction.

Settings and design choices

Specify control, treatment ordering, directional alternative, family, and supported calibration level. For the cited implementation, verify equal sample sizes and its tabulated range. A general two-sided or different-alpha request needs another justified implementation or simultaneous permutation procedure; changing a print label does not extend the critical-value table.

Fitting and adaptation

Recompute pairwise ranks and joint calibration when observations or treatments change. If balance is lost, do not feed an average sample size to a balanced critical-value table. A new control group changes every contrast and its dependence, so all comparisons must be rebuilt rather than retaining previous treatment-specific cutoffs.

Sensitivity and robustness

Ties and sample sizes outside tabulated support require careful documentation. Treating shared-control comparisons as independent misstates simultaneous error. The baseline equal-size, greater-direction example matches the narrow API design, but its returned critical-value decision should not be described as a general adjusted p-value or two-sided Steel test.

How to use and calibrate

Use Steel’s joint rank critical values or a simultaneous permutation distribution that preserves the shared control dependence.

Example application

Compare ordinal toxicity scores for several doses against one control.

Interpretation and pitfalls

Watch out

Do not treat shared-control comparisons as independent. This many-to-one test is distinct from all-pair Steel–Dwass procedures.

What changed in edition 2

  • New sections: structure of the method, estimated and nuisance parameters, settings and design choices, fitting and adaptation, sensitivity and robustness.
  • Rewritten in the review: how to use and calibrate.
  • How to use and calibratesearch.r-project.org

    The supplied API supports a narrower critical-value procedure than the general family discussion.

    Corrected text

    Use Steel's joint rank critical values or a simultaneous permutation distribution preserving shared-control dependence. The supplied PMCMRplus::steelTest call implements a balanced-design, one-sided alpha=0.05 critical-value-table procedure and does not return general p-values. General two-sided or other-alpha max-statistic calibration requires another explicitly justified implementation.

Python and R

One-sided Steel many-to-one rank comparisons: first factor level A is the control, and greater is prespecified. Read the simultaneous adjusted p-values for treatment-versus-control contrasts.

Python · invokes R

Not run — Python launcher syntax checked; R backend runtime not verified · needs Python standard library + Rscript; R packages: PMCMRplus

# Python launcher for the complete R implementation below.
# Requires Rscript on PATH and the listed R packages.
import shutil
import subprocess
rscript = shutil.which("Rscript")
if rscript is None:
    raise RuntimeError("Install R and make Rscript available on PATH.")
r_code = r"""
set.seed(2026)
d <- data.frame(value=c(rnorm(20),rnorm(20,.4),rnorm(20,.8)), group=factor(rep(c("A","B","C"),each=20)))
print(PMCMRplus::steelTest(value~group,data=d,alternative="greater"))
"""
# No shell interpolation. A failed R execution raises an error in Python.
result = subprocess.run([rscript, "--vanilla", "-"], input=r_code,
                        text=True, capture_output=True)
print(result.stdout)
if result.stderr:
    print(result.stderr)
result.check_returncode()
R

Not run — Syntax checked; runtime not verified in the final environment · needs PMCMRplus

set.seed(2026)
d <- data.frame(value=c(rnorm(20),rnorm(20,.4),rnorm(20,.8)), group=factor(rep(c("A","B","C"),each=20)))
print(PMCMRplus::steelTest(value~group,data=d,alternative="greater"))

Sources

Statistics guide v4 (historical):
Python: Python launcher syntax checked; R backend runtime not verified · R: Syntax checked; runtime not verified in the final environment
Reference's record:
Edition 2 review: Python: skip · R: not executed (Rscript unavailable); why not run: Python: Python-to-R bridge; Rscript is unavailable. R code was not executed. Python: Not run in the reference's review: Python-to-R bridge; Rscript is unavailable. R code was not executed. R: Reviewed but not run: R wasn't available to the reference's authors.

From the CodeSplash statistics guide (v4), entry 053, updated from the reference's edition 2 (reviewed 14 November 2026) as STAT053.