TriaLab Power Studio · Method
Categorical shift in paired data — Bowker's test of symmetry (Chow's Stuart–Maxwell)
Sizes a before-and-after design whose outcome is one of three or more categories, for the question ‘do subjects shift in one direction more than the other?’. Two categories are McNemar’s test, which has its own exact kernel.
Also known as: Stuart-Maxwell, McNemar-Bowker, DPRS, discordant proportion ratio sum, Bowker, marginal homogeneity, test of symmetry, categorical shift, paired categorical, shift table, pre-post categories.
Maturity
Validated: 11 published examples from 2 independent publications (Chow, Shao, Wang & Lokhnygina 2017; PASS) reproduce on every build (ADR-0001 §58).
What it solves for
- Sample size: offered.
- Power: offered.
- Detectable effect: offered.
- Precision: not offered — A confidence interval for a whole shift table is not one interval, and the omnibus statistic this test uses has no single estimand to put one around.
- 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: subjects are assessed before and after at fixed points, so calendar time does not enter the power function.
Size axes:
- Subjects, each classified before and after (
participants_total), 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 20; default 3; typically 3 to 5 (two categories are McNemar’s test) How many categories each subject is classified into, before and after. The test has r(r − 1)/2 degrees of freedom: 1 for two categories, 3 for three, 6 for four. - Shift discrepancy (Σ) (
shift_discrepancy): a number, above 0; default 0.107; typically 0.01 to 0.5 (below 0.01 the trial is very large; above 0.5 the shift is extreme) The asymmetry of the shift table: sum over each pair of categories of (p_ij − p_ji)² / (p_ij + p_ji), where p_ij is the probability of shifting from category i to category j. Chow’s pilot table of 25 subjects has upper off-diagonal counts 4, 4 and 3 against lower ones 2, 1 and 2, giving (0.16−0.08)²/0.24 + (0.16−0.04)²/0.20 + (0.12−0.08)²/0.20 = 0.1067. Larger means a more one-sided shift and a smaller trial.
Sizes entered when another axis is solved for
- Subjects, each classified before and after (
participants_total): a whole number, at least 1 Subjects, each classified before and after. Required when solving for power or detectable effect; produced by the solver when solving for sample size.
Modifiers admitted
dropout: Dropout
Published examples it reproduces (11)
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, §6.4.3.2 (printed p. 142) | Three categories, a pilot shift table of 25 subjects giving a discrepancy of 0.1067, two-sided alpha 0.05, power 0.80 => 102 subjects (Chow rounds 102.21 down; this engine rounds a size up) | Sample size | alpha = 0.05; categories = 3; power_target = 0.8; shift_discrepancy = 0.106667 | participants_total = 102 ± 1 |
| PASS chapter 151, Example 2, validating Chow (printed p. 151-8) | Chow’s 3 x 3 pilot table at full precision (DPRS 0.10667), two-sided 0.05, 80% power => 103 pairs | Sample size | alpha = 0.05; categories = 3; power_target = 0.8; shift_discrepancy = 0.106667 | participants_total = 103 ± 0 |
| PASS chapter 151, Example 2 (printed p. 151-8) | The same at 103 pairs => power 0.80335 | Power | alpha = 0.05; categories = 3; participants_total = 103; power_target = 0.8; shift_discrepancy = 0.106667 | power = 0.80335 ± 0.000006 |
| PASS chapter 151, Example 1 (printed p. 151-4) | Four categories, discrepancy 0.1, 60 pairs, alpha 0.05 => power 0.40283 | Power | alpha = 0.05; categories = 4; participants_total = 60; shift_discrepancy = 0.1 | power = 0.40283 ± 0.000006 |
| PASS chapter 151, Example 1 (printed p. 151-4) | Four categories, discrepancy 0.1, 80 pairs, alpha 0.05 => power 0.53065 | Power | alpha = 0.05; categories = 4; participants_total = 80; shift_discrepancy = 0.1 | power = 0.53065 ± 0.000006 |
| PASS chapter 151, Example 1 (printed p. 151-4) | Four categories, discrepancy 0.1, 100 pairs, alpha 0.05 => power 0.64385 | Power | alpha = 0.05; categories = 4; participants_total = 100; shift_discrepancy = 0.1 | power = 0.64385 ± 0.000006 |
| PASS chapter 151, Example 1 (printed p. 151-4) | Four categories, discrepancy 0.1, 120 pairs, alpha 0.05 => power 0.73803 | Power | alpha = 0.05; categories = 4; participants_total = 120; shift_discrepancy = 0.1 | power = 0.73803 ± 0.000006 |
| PASS chapter 151, Example 1 (printed p. 151-4) | Four categories, discrepancy 0.1, 140 pairs, alpha 0.05 => power 0.81256 | Power | alpha = 0.05; categories = 4; participants_total = 140; shift_discrepancy = 0.1 | power = 0.81256 ± 0.000006 |
| PASS chapter 151, Example 1 (printed p. 151-4) | Four categories, discrepancy 0.1, 160 pairs, alpha 0.05 => power 0.86917 | Power | alpha = 0.05; categories = 4; participants_total = 160; shift_discrepancy = 0.1 | power = 0.86917 ± 0.000006 |
| PASS chapter 151, Example 1 (printed p. 151-4) | Four categories, discrepancy 0.1, 180 pairs, alpha 0.05 => power 0.9107 | Power | alpha = 0.05; categories = 4; participants_total = 180; shift_discrepancy = 0.1 | power = 0.9107 ± 0.000006 |
| PASS chapter 151, Example 1 (printed p. 151-4) | Four categories, discrepancy 0.1, 200 pairs, alpha 0.05 => power 0.94026 | Power | alpha = 0.05; categories = 4; participants_total = 200; shift_discrepancy = 0.1 | power = 0.94026 ± 0.000006 |
Sources
- Chow S-C, Shao J, Wang H, Lokhnygina Y. Sample Size Calculations in Clinical Research. 3rd ed. Boca Raton: Chapman & Hall/CRC; 2017. §6.4.2, Equations 6.6-6.7.
- NCSS, LLC. PASS 2026 documentation, chapter 151: Tests for Multiple Correlated Proportions (McNemar-Bowker Test of Symmetry). Kaysville, UT: NCSS, LLC; 2026.
- Bowker AH. A test for symmetry in contingency tables. J Am Stat Assoc. 1948;43(244):572-574. Stuart A. A test for homogeneity of the marginal distributions in a two-way classification. Biometrika. 1955;42(3-4):412-416.
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 →