TriaLab Power Studio · Method

Paired proportions, McNemar's exact test

Proportions & binary Validated 16 published examples

Compares a binary outcome measured twice on the same participants, or once on each of a matched pair, by the exact conditional McNemar test, with the power enumerated over the number of discordant pairs. The test for small paired designs; the sample size is the first that reaches the target power.

Also known as: McNemar exact, paired proportions, matched pairs, exact test, discordant pairs, sign test, before-after.

Maturity

Validated: 16 published examples from 2 independent publications (G*Power; PASS) reproduce on every build (ADR-0001 §58).

What it solves for

  • Sample size: offered.
  • Power: offered.
  • Detectable effect: offered.
  • Precision: not offered — Sizing to a confidence-interval width is defined for this method, but no source on disk works an example of it, so it is not offered rather than offered unchecked.
  • 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.

The method’s own

  • Proportion of discordant pairs (π_D) (p_discordant): a number, above 0 and below 1; default 0.4; 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.24; 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; default two_sided Two-sided spends α/2 on each tail with its own critical count (G*Power’s first option). One-sided spends α on the tail in the direction of the anticipated shift — O’Brien’s worked example.
    • two_sided Two-sided: Either direction rejects.
    • one_sided One-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 (16)

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
G*Power 3.1 manual, §5.3, after O’Brien 2002 pp. 161-163 50 pairs, 40% discordant, odds ratio 0.25, one-sided alpha 0.05 => power 0.839343 (0.839 in O’Brien), actual alpha 0.032578 Power alpha = 0.05; difference = -0.24; p_discordant = 0.4; pairs = 50; tails = one_sided power = 0.839343 ± 0.00002
PASS 2026 chapter 150, Example 1 (printed p. 150-5) McNemar odds ratio 2, discordant proportion 0.3, two-sided 0.05, 150 pairs => power 0.5646 by multinomial enumeration Power alpha = 0.05; discordant_ratio = 2; p_discordant = 0.3; pairs = 150; tails = two_sided; effect expressed as ratio power = 0.5646 ± 0.00005
PASS 2026 chapter 150, Example 1 (printed p. 150-5) McNemar odds ratio 2, discordant proportion 0.3, two-sided 0.05, 200 pairs => power 0.7034 by multinomial enumeration Power alpha = 0.05; discordant_ratio = 2; p_discordant = 0.3; pairs = 200; tails = two_sided; effect expressed as ratio power = 0.7034 ± 0.00005
PASS 2026 chapter 150, Example 2 (printed p. 150-8), validating Schork & Williams 1980 p. 354 Difference 0.2, discordant proportion 0.7, one-sided 0.025, power 0.80 => 144 pairs Sample size alpha = 0.025; difference = 0.2; p_discordant = 0.7; power_target = 0.8; tails = one_sided pairs = 144 ± 0
PASS 2026 chapter 150, Example 3 (printed p. 150-10) Marginal probabilities 0.55 against 0.5 (difference 0.05), within-subject correlation 0.0 (discordant proportion 0.5), two-sided 0.05, power 0.80 => 1606 pairs Sample size alpha = 0.05; difference = 0.05; p_discordant = 0.5; power_target = 0.8; tails = two_sided pairs = 1606 ± 0
PASS 2026 chapter 150, Example 3 (printed p. 150-10) Marginal probabilities 0.55 against 0.5 (difference 0.05), within-subject correlation 0.2 (discordant proportion 0.4005), two-sided 0.05, power 0.80 => 1293 pairs Sample size alpha = 0.05; difference = 0.05; p_discordant = 0.4005; power_target = 0.8; tails = two_sided pairs = 1293 ± 0
PASS 2026 chapter 150, Example 3 (printed p. 150-10) Marginal probabilities 0.55 against 0.5 (difference 0.05), within-subject correlation 0.4 (discordant proportion 0.301), two-sided 0.05, power 0.80 => 978 pairs Sample size alpha = 0.05; difference = 0.05; p_discordant = 0.301; power_target = 0.8; tails = two_sided pairs = 978 ± 0
PASS 2026 chapter 150, Example 3 (printed p. 150-10) Marginal probabilities 0.55 against 0.5 (difference 0.05), within-subject correlation 0.6 (discordant proportion 0.2015), two-sided 0.05, power 0.80 => 662 pairs Sample size alpha = 0.05; difference = 0.05; p_discordant = 0.2015; power_target = 0.8; tails = two_sided pairs = 662 ± 0
PASS 2026 chapter 150, Example 3 (printed p. 150-10) Marginal probabilities 0.6 against 0.5 (difference 0.1), within-subject correlation 0.0 (discordant proportion 0.5), two-sided 0.05, power 0.80 => 408 pairs Sample size alpha = 0.05; difference = 0.1; p_discordant = 0.5; power_target = 0.8; tails = two_sided pairs = 408 ± 0
PASS 2026 chapter 150, Example 3 (printed p. 150-10) Marginal probabilities 0.6 against 0.5 (difference 0.1), within-subject correlation 0.2 (discordant proportion 0.402), two-sided 0.05, power 0.80 => 330 pairs Sample size alpha = 0.05; difference = 0.1; p_discordant = 0.402; power_target = 0.8; tails = two_sided pairs = 330 ± 0
PASS 2026 chapter 150, Example 3 (printed p. 150-10) Marginal probabilities 0.6 against 0.5 (difference 0.1), within-subject correlation 0.4 (discordant proportion 0.304), two-sided 0.05, power 0.80 => 252 pairs Sample size alpha = 0.05; difference = 0.1; p_discordant = 0.304; power_target = 0.8; tails = two_sided pairs = 252 ± 0
PASS 2026 chapter 150, Example 3 (printed p. 150-10) Marginal probabilities 0.6 against 0.5 (difference 0.1), within-subject correlation 0.6 (discordant proportion 0.2061), two-sided 0.05, power 0.80 => 173 pairs Sample size alpha = 0.05; difference = 0.1; p_discordant = 0.2061; power_target = 0.8; tails = two_sided pairs = 173 ± 0
PASS 2026 chapter 150, Example 3 (printed p. 150-10) Marginal probabilities 0.65 against 0.5 (difference 0.15), within-subject correlation 0.0 (discordant proportion 0.5), two-sided 0.05, power 0.80 => 183 pairs Sample size alpha = 0.05; difference = 0.15; p_discordant = 0.5; power_target = 0.8; tails = two_sided pairs = 183 ± 0
PASS 2026 chapter 150, Example 3 (printed p. 150-10) Marginal probabilities 0.65 against 0.5 (difference 0.15), within-subject correlation 0.2 (discordant proportion 0.4046), two-sided 0.05, power 0.80 => 149 pairs Sample size alpha = 0.05; difference = 0.15; p_discordant = 0.4046; power_target = 0.8; tails = two_sided pairs = 149 ± 0
PASS 2026 chapter 150, Example 3 (printed p. 150-10) Marginal probabilities 0.65 against 0.5 (difference 0.15), within-subject correlation 0.4 (discordant proportion 0.3092), two-sided 0.05, power 0.80 => 115 pairs Sample size alpha = 0.05; difference = 0.15; p_discordant = 0.3092; power_target = 0.8; tails = two_sided pairs = 115 ± 0
PASS 2026 chapter 150, Example 3 (printed p. 150-10) Marginal probabilities 0.65 against 0.5 (difference 0.15), within-subject correlation 0.6 (discordant proportion 0.2138), two-sided 0.05, power 0.80 => 77 pairs Sample size alpha = 0.05; difference = 0.15; p_discordant = 0.2138; power_target = 0.8; tails = two_sided pairs = 77 ± 0

Sources

  1. Faul F, Erdfelder E, Lang A-G, Buchner A. G*Power 3.1 manual. §5, Exact: Proportion — inequality, two dependent groups (McNemar), after O’Brien RG. Sample size analysis in study planning. 2002.
  2. 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.

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 →