TriaLab Power Studio · Method
Ordered categorical outcome, Mann–Whitney test with ties (Zhao)
Sizes a two-group trial whose outcome is an ordered scale, analysed by the Wilcoxon–Mann–Whitney test, from both groups’ anticipated category distributions — no proportional-odds assumption. Zhao, Rahardja and Qu’s formula with the tie adjustment.
Also known as: Mann-Whitney, Wilcoxon rank-sum, WMW, non-proportional odds, ordinal outcome, competing probability, ties, Likert, WHO ordinal scale.
Maturity
Validated: 5 published examples from 2 independent publications (Machin, Campbell, Tan & Tan 2018; PASS) reproduce on every build (ADR-0001 §58).
What it solves for
- Sample size: offered.
- Power: offered.
- Detectable effect: not offered — The effect is two whole distributions, not one number to walk: change the treatment distribution and read the power.
- Precision: not offered — A confidence-interval width for the competing probability is not sized here: neither Zhao nor PASS chapter 251 offers one.
- Assurance: not offered — No source on disk states a prior on this design’s effect, so the assurance modifier is not admitted here.
- Duration: not offered — This design has no time axis: each subject is classified once (or once before and once after), so calendar time does not enter the power function.
Size axes:
- Subjects in group 1 (control); group 2 follows the allocation (
participants_per_group), Count
Inputs
Every field as the form shows it, with its help. A field marked advanced sits behind Expert mode.
Common to every method
- Significance level (alpha) (
alpha): a number, above 0 and below 1; default 0.05; typically 0.01 to 0.05 (0.05 in most trials; 0.01 for confirmatory claims); entered as proportion (0-1) or percent The type I error rate. Interpreted as two-sided when testing plain equality and one-sided when a margin frame is active, following the usual convention. - Target power (
power_target): a number, above 0 and below 1; default 0.8; typically 0.8 to 0.9 (0.80 is conventional; 0.90 for definitive trials); entered as proportion (0-1) or percent The chance of a significant result if the assumed effect is real. Used when solving for sample size or detectable effect; ignored when solving for power.
The method’s own
- Number of categories (
categories): a whole number, at least 2 and at most 64; default 5; typically 3 to 9 (two categories are a two-proportion test) How many ordered categories the outcome has, from the best (category 1) to the worst. - Control-group distribution (
control_probability): one number per element, as many ascategories; default (1, 1, 1, 1, 1) The anticipated probability of each category in the control group, best category first. Counts or percentages are accepted: the list is scaled to sum to one. - Treatment-group distribution (
treatment_probability): one number per element, as many ascategories; default (2, 1.75, 1.5, 1.25, 1) The anticipated probability of each category in the treatment group, in the same order. The competing probability — the chance a treated subject does better than a control, ties counted half — is derived from the two lists. - Sidedness of the equality test (
tails): a choice; defaulttwo_sidedTwo-sided is Zhao’s and PASS’s default; a one-sided test spends alpha on the anticipated direction.two_sidedTwo-sided: Either direction rejects.one_sidedOne-sided: Only the anticipated direction rejects; alpha is spent on that tail.
Sizes entered when another axis is solved for
- Subjects in group 1 (control); group 2 follows the allocation (
participants_per_group): a whole number, at least 1 Subjects in group 1 (control); group 2 follows the allocation. Required when solving for power or detectable effect; produced by the solver when solving for sample size.
Modifiers admitted
allocation: Allocationdropout: Dropout
Published examples it reproduces (5)
Each is a worked example: the inputs as a user enters them, and the number the source prints, which the engine reproduces within the tolerance on every build (the Validation screen runs them on your machine).
| Source | Example | Solves for | Inputs | Published |
|---|---|---|---|---|
| PASS chapter 251, Example 1 (printed p. 251-4) | Control 0.1/0.2/0.4/0.2/0.1 against [2.0, 4.0, 2.0, 1.0, 1.0], 2:1 allocation, two-sided 0.05, 80% power => 51 controls (power 0.80472) | Sample size | allocation_ratio = 2; alpha = 0.05; categories = 5; control_probability = (1, 2, 4, 2, 1); power_target = 0.8; treatment_probability = (2, 4, 2, 1, 1) (with allocation) | participants_per_group = 51 ± 0 |
| PASS chapter 251, Example 1 (printed p. 251-4) | Control 0.1/0.2/0.4/0.2/0.1 against [3.0, 3.0, 1.0, 1.0, 2.0], 2:1 allocation, two-sided 0.05, 80% power => 85 controls (power 0.80267 by PASS’s weights) | Sample size | allocation_ratio = 2; alpha = 0.05; categories = 5; control_probability = (1, 2, 4, 2, 1); power_target = 0.8; treatment_probability = (3, 3, 1, 1, 2) (with allocation) | participants_per_group = 85 ± 0 |
| PASS chapter 251, Example 1 (printed p. 251-4) | Control 0.1/0.2/0.4/0.2/0.1 against [5.0, 2.0, 1.0, 1.0, 1.0], 2:1 allocation, two-sided 0.05, 80% power => 22 controls (21 by Zhao’s pooling weights, which this kernel uses) | Sample size | allocation_ratio = 2; alpha = 0.05; categories = 5; control_probability = (1, 2, 4, 2, 1); power_target = 0.8; treatment_probability = (5, 2, 1, 1, 1) (with allocation) | participants_per_group = 22 ± 1 |
| PASS chapter 251, Example 2, validating Machin et al. 2018 pp. 64-65 (printed p. 251-7) | Non-smokers 0.6632/0.1458/0.1910 against smokers 0.6062/0.2338/0.1600, equal groups, two-sided 0.05, 80% power => 3011 per group (power 0.80009) | Sample size | alpha = 0.05; categories = 3; control_probability = (0.6632, 0.1458, 0.191); power_target = 0.8; treatment_probability = (0.6062, 0.2338, 0.16) | participants_per_group = 3011 ± 0 |
| Machin, Campbell, Tan & Tan 2018, Example 4.6 (printed p. 65) | The same with the percentages rounded to 66/15/19 and 61/23/16 => 8342 in all, 4171 per group | Sample size | alpha = 0.05; categories = 3; control_probability = (66, 15, 19); power_target = 0.8; treatment_probability = (61, 23, 16) | participants_per_group = 4171 ± 0 |
Sources
- Zhao YD, Rahardja D, Qu Y. Sample size calculation for the Wilcoxon-Mann-Whitney test adjusting for ties. Stat Med. 2008;27(3):462-468. Equation 12.
- NCSS, LLC. PASS 2026 documentation, chapter 251: Tests for Two Ordered Categorical Variables (Non-Proportional Odds). Kaysville, UT: NCSS, LLC; 2026.
- Machin D, Campbell MJ, Tan SB, Tan SH. Sample Sizes for Clinical, Laboratory and Epidemiology Studies. 4th ed. Chichester: Wiley; 2018. §4.2, Equation 4.8.
This page was generated from TriaLab Power Studio 2.0.1's engine, as the method is built, and is published in English only. All methods →