TriaLab Power Studio · Method
Propensity-score stratified comparison of two proportions (weighted Mantel–Haenszel)
Sizes a nonrandomised two-treatment study whose binary outcome is compared within propensity-score strata that allocate to treatment in different proportions, by Chow’s weighted Mantel–Haenszel test with a common odds ratio — and prints the size the analysis ignoring the strata would ask for beside it.
Also known as: propensity score, propensity analysis, nonrandomized, non-randomised, observational, medical device, weighted Mantel-Haenszel, WMH, Gart, stratified, Rosenbaum Rubin, epidemiology.
Maturity
Validated: 25 published examples from 2 independent publications (Chow, Shao, Wang & Lokhnygina 2017; Nam 1992) reproduce on every build (ADR-0001 §58).
What it solves for
- Sample size: offered.
- Power: offered.
- Detectable effect: offered.
- Precision: not offered — No source on disk sizes a propensity-stratified odds ratio to a confidence-interval width; the kernel offers the test’s power and size.
- 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’s exposure is recorded once, so calendar time does not enter the power function.
Size axes:
- Patients in all (
participants), 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 propensity strata (J) (
strata): a whole number, at least 1 and at most 64; default 5; typically 3 to 10 (five quintiles is the usual choice) How many propensity-score classes the analysis compares within; five quintiles is the usual choice. - Share of the patients in each stratum (
stratum_fraction): one number per element, as many asstrata; default (1, 1, 1, 1, 1) How the patients are expected to divide between the propensity classes, as relative weights; they are normalised, so five equal entries are five equal strata. Yue suggests equal classes when nothing is known. - Share of each stratum on control (
control_fraction): one number per element, as many asstrata; default (0.4, 0.45, 0.5, 0.55, 0.6); entered as proportion (0-1) or percent The fraction of each stratum’s patients who receive the control treatment — the allocation the propensity score describes, which differs from stratum to stratum in a nonrandomised study. A study balanced on its covariates has the same share everywhere. - Response probability on control in each stratum (
p_control): one number per element, as many asstrata; default (0.5, 0.6, 0.7, 0.8, 0.9); entered as proportion (0-1) or percent The probability of the outcome for a control patient in each propensity class; the treatment’s probability follows from the common odds ratio. - Odds ratio to detect (φ), common to the strata (
odds_ratio): a number, above 0; default 2; typically 1.2 to 4 (an odds ratio below 1.2 needs thousands of patients) The odds of the outcome on the new treatment against the odds on control, taken the same in every stratum — no interaction of treatment with the propensity score. One is no effect; the search for a detectable effect walks upward from it. - Weights across the strata (
weights): a choice; defaultmantel_haenszelHow the strata’s contributions are weighted in the test statistic. The Mantel–Haenszel weights are Chow’s default and his worked example; Gart’s weights give Nam’s (1998) test.mantel_haenszelMantel–Haenszel (equal weights): Every stratum weighted alike: the ordinary MH test.gartGart’s weights: Each stratum weighted by 1 − b₁p₁ − b₂p₂, its expected non-response.
- Sidedness of the equality test (
tails): a choice; defaulttwo_sidedTwo-sided, as Chow’s formula is; one-sided looks in the direction of the odds ratio entered.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
- Patients in all (
participants): a whole number, at least 1 The total across both treatments and every stratum; each stratum’s share and its split between the treatments are the fractions entered. Required when solving for power or detectable effect; produced by the solver when solving for sample size.
Modifiers admitted
multiplicity: Multiplicity (a family of tests)fdr: False-discovery rate (many features tested at once)dropout: Dropout
Published examples it reproduces (25)
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 |
|---|---|---|---|---|
| Chow, Shao, Wang & Lokhnygina 2017, §20.2.3 (printed p. 439) | Five strata at 0.15/0.15/0.2/0.25/0.25 of the patients, control shares 0.4/0.4/0.5/0.6/0.6, control rates 0.5–0.9, odds ratio 2, two-sided 0.05, 80% power => 447 for the MH test | Sample size | alpha = 0.05; control_fraction = (0.4, 0.4, 0.5, 0.6, 0.6); odds_ratio = 2; p_control = (0.5, 0.6, 0.7, 0.8, 0.9); power_target = 0.8; strata = 5; stratum_fraction = (0.15, 0.15, 0.2, 0.25, 0.25) | participants = 447 ± 0 |
| Chow, Shao, Wang & Lokhnygina 2017, §20.2.3 (printed p. 439) | The same design: ignoring the strata the pooled rates are 0.7519 and 0.8197 (odds ratio 1.5004) and Equation 20.12 asks for 1,151 | Sample size | alpha = 0.05; control_fraction = (0.4, 0.4, 0.5, 0.6, 0.6); odds_ratio = 2; p_control = (0.5, 0.6, 0.7, 0.8, 0.9); power_target = 0.8; strata = 5; stratum_fraction = (0.15, 0.15, 0.2, 0.25, 0.25) | unstratified_size = 1151 ± 0 |
| Chow, Shao, Wang & Lokhnygina 2017, §20.2.3 (printed p. 439) | The same design: the pooled odds ratio is 1.5004 | Sample size | alpha = 0.05; control_fraction = (0.4, 0.4, 0.5, 0.6, 0.6); odds_ratio = 2; p_control = (0.5, 0.6, 0.7, 0.8, 0.9); power_target = 0.8; strata = 5; stratum_fraction = (0.15, 0.15, 0.2, 0.25, 0.25) | apparent_odds_ratio = 1.5004 ± 0.00005 |
| Chow, Shao, Wang & Lokhnygina 2017, §20.2.3 (printed p. 439) | The same with every stratum 0.3 on control => 499 for the stratified test | Sample size | alpha = 0.05; control_fraction = (0.3, 0.3, 0.3, 0.3, 0.3); odds_ratio = 2; p_control = (0.5, 0.6, 0.7, 0.8, 0.9); power_target = 0.8; strata = 5; stratum_fraction = (0.15, 0.15, 0.2, 0.25, 0.25) | participants = 499 ± 0 |
| Chow, Shao, Wang & Lokhnygina 2017, §20.2.3 (printed p. 439) | Balanced at 0.3: ignoring the strata asks for 542 | Sample size | alpha = 0.05; control_fraction = (0.3, 0.3, 0.3, 0.3, 0.3); odds_ratio = 2; p_control = (0.5, 0.6, 0.7, 0.8, 0.9); power_target = 0.8; strata = 5; stratum_fraction = (0.15, 0.15, 0.2, 0.25, 0.25) | unstratified_size = 542 ± 0 |
| Nam 1992, §3 (printed p. 392), after Woolson, Bean & Rojas 1986 | colon cancer and chlorinated water, four age strata at 0.10/0.40/0.35/0.15, cases and controls equal in each, controls exposed 0.75/0.70/0.65/0.60, odds ratio 3, one-sided 0.05, 90% power => N* 171 in all | Sample size | alpha = 0.05; control_fraction = (0.5, 0.5, 0.5, 0.5); odds_ratio = 3; p_control = (0.75, 0.7, 0.65, 0.6); power_target = 0.9; strata = 4; stratum_fraction = (0.1, 0.4, 0.35, 0.15); tails = one_sided |
participants = 171 ± 0 |
| Nam 1992, §3 (printed p. 392), after Woolson, Bean & Rojas 1986 | the same at 70% power => N* 95 in all | Sample size | alpha = 0.05; control_fraction = (0.5, 0.5, 0.5, 0.5); odds_ratio = 3; p_control = (0.75, 0.7, 0.65, 0.6); power_target = 0.7; strata = 4; stratum_fraction = (0.1, 0.4, 0.35, 0.15); tails = one_sided |
participants = 95 ± 0 |
| Nam 1992, Table 2 (printed p. 393) | three strata at 0.1/0.3/0.6, controls exposed 0.1/0.2/0.5, cases’ share 0.2/0.5/0.8, odds ratio 3, one-sided 0.05, 90% power => N* 177 in all (printed to the nearest; this engine rounds up) | Sample size | alpha = 0.05; control_fraction = (0.8, 0.5, 0.2); odds_ratio = 3; p_control = (0.1, 0.2, 0.5); power_target = 0.9; strata = 3; stratum_fraction = (0.1, 0.3, 0.6); tails = one_sided |
participants = 177 ± 1 |
| Nam 1992, Table 2 (printed p. 393) | three strata at 0.1/0.3/0.6, controls exposed 0.1/0.2/0.5, cases’ share 0.2/0.5/0.8, odds ratio 3, one-sided 0.05, 80% power => N* 127 in all (printed to the nearest; this engine rounds up) | Sample size | alpha = 0.05; control_fraction = (0.8, 0.5, 0.2); odds_ratio = 3; p_control = (0.1, 0.2, 0.5); power_target = 0.8; strata = 3; stratum_fraction = (0.1, 0.3, 0.6); tails = one_sided |
participants = 127 ± 1 |
| Nam 1992, Table 2 (printed p. 393) | three strata at 0.1/0.3/0.6, controls exposed 0.1/0.2/0.5, cases’ share 0.5/0.5/0.5, odds ratio 3, one-sided 0.05, 90% power => N* 134 in all (printed to the nearest; this engine rounds up) | Sample size | alpha = 0.05; control_fraction = (0.5, 0.5, 0.5); odds_ratio = 3; p_control = (0.1, 0.2, 0.5); power_target = 0.9; strata = 3; stratum_fraction = (0.1, 0.3, 0.6); tails = one_sided |
participants = 134 ± 1 |
| Nam 1992, Table 2 (printed p. 393) | three strata at 0.1/0.3/0.6, controls exposed 0.1/0.2/0.5, cases’ share 0.5/0.5/0.5, odds ratio 3, one-sided 0.05, 80% power => N* 97 in all (printed to the nearest; this engine rounds up) | Sample size | alpha = 0.05; control_fraction = (0.5, 0.5, 0.5); odds_ratio = 3; p_control = (0.1, 0.2, 0.5); power_target = 0.8; strata = 3; stratum_fraction = (0.1, 0.3, 0.6); tails = one_sided |
participants = 97 ± 1 |
| Nam 1992, Table 2 (printed p. 393) | three strata at 0.25/0.5/0.25, controls exposed 0.1/0.2/0.5, cases’ share 0.5/0.5/0.5, odds ratio 3, one-sided 0.05, 90% power => N* 147 in all (printed to the nearest; this engine rounds up) | Sample size | alpha = 0.05; control_fraction = (0.5, 0.5, 0.5); odds_ratio = 3; p_control = (0.1, 0.2, 0.5); power_target = 0.9; strata = 3; stratum_fraction = (0.25, 0.5, 0.25); tails = one_sided |
participants = 147 ± 1 |
| Nam 1992, Table 2 (printed p. 393) | three strata at 0.25/0.5/0.25, controls exposed 0.1/0.2/0.5, cases’ share 0.5/0.5/0.5, odds ratio 3, one-sided 0.05, 80% power => N* 107 in all | Sample size | alpha = 0.05; control_fraction = (0.5, 0.5, 0.5); odds_ratio = 3; p_control = (0.1, 0.2, 0.5); power_target = 0.8; strata = 3; stratum_fraction = (0.25, 0.5, 0.25); tails = one_sided |
participants = 107 ± 0 |
| Nam 1992, Table 2 (printed p. 393) | three strata at 0.1/0.3/0.6, controls exposed 0.3/0.5/0.4, cases’ share 0.2/0.5/0.8, odds ratio 3, one-sided 0.05, 90% power => N* 158 in all (printed to the nearest; this engine rounds up) | Sample size | alpha = 0.05; control_fraction = (0.8, 0.5, 0.2); odds_ratio = 3; p_control = (0.3, 0.5, 0.4); power_target = 0.9; strata = 3; stratum_fraction = (0.1, 0.3, 0.6); tails = one_sided |
participants = 158 ± 1 |
| Nam 1992, Table 2 (printed p. 393) | three strata at 0.1/0.3/0.6, controls exposed 0.3/0.5/0.4, cases’ share 0.2/0.5/0.8, odds ratio 3, one-sided 0.05, 80% power => N* 115 in all | Sample size | alpha = 0.05; control_fraction = (0.8, 0.5, 0.2); odds_ratio = 3; p_control = (0.3, 0.5, 0.4); power_target = 0.8; strata = 3; stratum_fraction = (0.1, 0.3, 0.6); tails = one_sided |
participants = 115 ± 0 |
| Nam 1992, Table 2 (printed p. 393) | three strata at 0.1/0.3/0.6, controls exposed 0.3/0.5/0.4, cases’ share 0.5/0.5/0.5, odds ratio 3, one-sided 0.05, 90% power => N* 119 in all | Sample size | alpha = 0.05; control_fraction = (0.5, 0.5, 0.5); odds_ratio = 3; p_control = (0.3, 0.5, 0.4); power_target = 0.9; strata = 3; stratum_fraction = (0.1, 0.3, 0.6); tails = one_sided |
participants = 119 ± 0 |
| Nam 1992, Table 2 (printed p. 393) | three strata at 0.1/0.3/0.6, controls exposed 0.3/0.5/0.4, cases’ share 0.5/0.5/0.5, odds ratio 3, one-sided 0.05, 80% power => N* 86 in all (printed to the nearest; this engine rounds up) | Sample size | alpha = 0.05; control_fraction = (0.5, 0.5, 0.5); odds_ratio = 3; p_control = (0.3, 0.5, 0.4); power_target = 0.8; strata = 3; stratum_fraction = (0.1, 0.3, 0.6); tails = one_sided |
participants = 86 ± 1 |
| Nam 1992, Table 2 (printed p. 393) | three strata at 0.25/0.5/0.25, controls exposed 0.3/0.5/0.4, cases’ share 0.5/0.5/0.5, odds ratio 3, one-sided 0.05, 90% power => N* 121 in all | Sample size | alpha = 0.05; control_fraction = (0.5, 0.5, 0.5); odds_ratio = 3; p_control = (0.3, 0.5, 0.4); power_target = 0.9; strata = 3; stratum_fraction = (0.25, 0.5, 0.25); tails = one_sided |
participants = 121 ± 0 |
| Nam 1992, Table 2 (printed p. 393) | three strata at 0.25/0.5/0.25, controls exposed 0.3/0.5/0.4, cases’ share 0.5/0.5/0.5, odds ratio 3, one-sided 0.05, 80% power => N* 88 in all | Sample size | alpha = 0.05; control_fraction = (0.5, 0.5, 0.5); odds_ratio = 3; p_control = (0.3, 0.5, 0.4); power_target = 0.8; strata = 3; stratum_fraction = (0.25, 0.5, 0.25); tails = one_sided |
participants = 88 ± 0 |
| Nam 1992, Table 2 (printed p. 393) | three strata at 0.1/0.3/0.6, controls exposed 0.5/0.4/0.7, cases’ share 0.2/0.5/0.8, odds ratio 3, one-sided 0.05, 90% power => N* 190 in all | Sample size | alpha = 0.05; control_fraction = (0.8, 0.5, 0.2); odds_ratio = 3; p_control = (0.5, 0.4, 0.7); power_target = 0.9; strata = 3; stratum_fraction = (0.1, 0.3, 0.6); tails = one_sided |
participants = 190 ± 0 |
| Nam 1992, Table 2 (printed p. 393) | three strata at 0.1/0.3/0.6, controls exposed 0.5/0.4/0.7, cases’ share 0.2/0.5/0.8, odds ratio 3, one-sided 0.05, 80% power => N* 136 in all | Sample size | alpha = 0.05; control_fraction = (0.8, 0.5, 0.2); odds_ratio = 3; p_control = (0.5, 0.4, 0.7); power_target = 0.8; strata = 3; stratum_fraction = (0.1, 0.3, 0.6); tails = one_sided |
participants = 136 ± 0 |
| Nam 1992, Table 2 (printed p. 393) | three strata at 0.1/0.3/0.6, controls exposed 0.5/0.4/0.7, cases’ share 0.5/0.5/0.5, odds ratio 3, one-sided 0.05, 90% power => N* 150 in all (printed to the nearest; this engine rounds up) | Sample size | alpha = 0.05; control_fraction = (0.5, 0.5, 0.5); odds_ratio = 3; p_control = (0.5, 0.4, 0.7); power_target = 0.9; strata = 3; stratum_fraction = (0.1, 0.3, 0.6); tails = one_sided |
participants = 150 ± 1 |
| Nam 1992, Table 2 (printed p. 393) | three strata at 0.1/0.3/0.6, controls exposed 0.5/0.4/0.7, cases’ share 0.5/0.5/0.5, odds ratio 3, one-sided 0.05, 80% power => N* 109 in all (printed to the nearest; this engine rounds up) | Sample size | alpha = 0.05; control_fraction = (0.5, 0.5, 0.5); odds_ratio = 3; p_control = (0.5, 0.4, 0.7); power_target = 0.8; strata = 3; stratum_fraction = (0.1, 0.3, 0.6); tails = one_sided |
participants = 109 ± 1 |
| Nam 1992, Table 2 (printed p. 393) | three strata at 0.25/0.5/0.25, controls exposed 0.5/0.4/0.7, cases’ share 0.5/0.5/0.5, odds ratio 3, one-sided 0.05, 90% power => N* 130 in all (printed to the nearest; this engine rounds up) | Sample size | alpha = 0.05; control_fraction = (0.5, 0.5, 0.5); odds_ratio = 3; p_control = (0.5, 0.4, 0.7); power_target = 0.9; strata = 3; stratum_fraction = (0.25, 0.5, 0.25); tails = one_sided |
participants = 130 ± 1 |
| Nam 1992, Table 2 (printed p. 393) | three strata at 0.25/0.5/0.25, controls exposed 0.5/0.4/0.7, cases’ share 0.5/0.5/0.5, odds ratio 3, one-sided 0.05, 80% power => N* 95 in all | Sample size | alpha = 0.05; control_fraction = (0.5, 0.5, 0.5); odds_ratio = 3; p_control = (0.5, 0.4, 0.7); power_target = 0.8; strata = 3; stratum_fraction = (0.25, 0.5, 0.25); tails = one_sided |
participants = 95 ± 0 |
Sources
- Chow S-C, Shao J, Wang H, Lokhnygina Y. Sample Size Calculations in Clinical Research. 3rd ed. Chapman & Hall/CRC; 2017. §20.2, Equations 20.10–20.12.
- Yue LQ. Statistical and regulatory issues with the application of propensity score analysis to nonrandomized medical device clinical studies. J Biopharm Stat. 2007;17(1):1-13.
- Nam J. Power and sample size for stratified prospective studies using the score method for testing relative risk. Biometrics. 1998;54(1):147-153.
- Nam J. Sample size determination for case-control studies and the comparison of stratified and unstratified analyses. Biometrics. 1992;48(2):389-395.
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 →