TriaLab Power Studio · Method
Paired proportions, McNemar's test (normal approximation)
Compares a binary outcome measured twice on the same participants, or once on each of a matched pair, by McNemar’s test on the discordant pairs, sized by Chow’s normal approximation. Before–after laboratory shifts and binary crossover outcomes.
Also known as: McNemar, paired proportions, matched pairs, before-after, pre-post, categorical shift, discordant pairs, dependent proportions.
Maturity
Validated: 4 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: offered.
- 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 pair is assessed once, so calendar time does not enter the power function.
Size axes:
- Pairs (
pairs), 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. - Confidence-interval half-width (
half_width_target): a number, above 0; entered as proportion (0-1) or percent Half the total width of the confidence interval, in the units the effect is measured in — the distance from the estimate to either limit, where the interval is symmetric about it. Used when solving for precision; ignored for every other target.
The method’s own
- Proportion of discordant pairs (π_D) (
p_discordant): a number, above 0 and below 1; default 0.7; entered as proportion (0-1) or percent The proportion of pairs whose two responses differ — normal then abnormal, or abnormal then normal — which is all the pairs McNemar’s test uses. The rest are concordant and contribute nothing. - Difference between the discordant proportions (p₀₁ − p₁₀) (
difference): a number, above -1 and below 1; default -0.3; entered as proportion (0-1) or percent The proportion shifting from negative to positive minus the proportion shifting from positive to negative — equivalently the change in the overall proportion positive after treatment. Positive means more positives after. Its size cannot exceed the proportion of discordant pairs. - Ratio of the discordant proportions (ψ = p₀₁ / p₁₀) (
discordant_ratio): a number, above 0 Chow’s ψ, G*Power’s odds ratio: how many times more pairs shift up than down. 1 is no effect. - Sidedness of the equality test (
tails): a choice; defaulttwo_sidedChow’s test is two-sided; one-sided spends alpha on the tail in the direction of the anticipated shift.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
- Pairs (
pairs): a whole number, at least 1 Pairs. Required when solving for power or detectable effect; produced by the solver when solving for sample size.
Ways to express an input
Effect size — The shift between the two discordant cells, as their difference or their ratio; the two are one quantity given the proportion of discordant pairs.
- Difference p₀₁ − p₁₀, the form’s default: The change in the marginal proportion — the clinical quantity. (fields
difference) - Ratio p₀₁ / p₁₀: Chow’s ψ and G*Power’s odds ratio; converted through π_D. (fields
discordant_ratio)
Modifiers admitted
dropout: Dropout
Published examples it reproduces (4)
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.1 (Equation 6.5) | 50% shift abnormal → normal and 20% normal → abnormal, two-sided alpha 0.05, power 0.80 => 59 pairs | Sample size | alpha = 0.05; difference = -0.3; p_discordant = 0.7; power_target = 0.8 | pairs = 59 ± 0 |
| PASS 2026 chapter 150, Example 4 (printed p. 150-13), after Julious 2010 p. 170 | Discordant proportion 0.48, difference 0.16, two-sided 0.05, power 0.90 => 193 pairs (power 0.9003) by the normal approximation | Sample size | alpha = 0.05; difference = 0.16; p_discordant = 0.48; power_target = 0.9 | pairs = 193 ± 0 |
| PASS 2026 chapter 150, Example 4 (printed p. 150-13), after Julious 2010 p. 170 | The same at 193 pairs => power 0.9003 | Power | alpha = 0.05; difference = 0.16; p_discordant = 0.48; pairs = 193 | power = 0.9003 ± 0.00005 |
| PASS chapter 102, Example 3 (printed p. 102-12), after Newcombe 1998c p. 2640 | P10 0.24 and P01 0.04 (discordant 0.28, difference −0.20), 50 pairs, two-sided 95% Wald interval => width 0.27158, half-width 0.13579 | Power | alpha = 0.05; difference = -0.2; half_width_target = 0.1; p_discordant = 0.28; pairs = 50 | half_width = 0.13579 ± 0.000005 |
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.1, McNemar’s test, Equations 6.5-6.6.
- Faul F, Erdfelder E, Lang A-G, Buchner A. G*Power 3.1 manual. §5, Exact: Proportion — inequality, two dependent groups (McNemar).
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 →