BCompare groups · Guide test 053
Steel many to one rank test
Compares several independent treatment distributions with a control using ranks.
Do it in CodeSplash
In the app, set it up in Analyze with this method:
- Pairwise comparisons (Tukey, Games–Howell, Dunnett, Dunn, Steel–Dwass …) — Which groups differ from which?
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
Group i has true mean (i − 1) × spread.
Your data
Drag a point or use ↑/↓ to change itIf H₀ were true
- The reference: how |z| varies across samples when H₀ is true, the largest of 3 correlated |z| (Steel).
- Your statistic, from the data above.
- The p-value: the area at least as extreme as yours (p = .028).
- The hatched rejection region at α = .050: statistics landing here reject H₀.
The whole family
| Pair | Hodges–Lehmann shift | p | p 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
With your numbers
- Mann–Whitney U of group i against the control
- 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 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
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.
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()
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
- PMCMRplus — PMCMRplus · steelTestAuthor documentation/source reviewed: PMCMRplus 1.9.12.search.r-project.org
- steelTestsearch.r-project.org
- 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.