TriaLab Power Studio · Method

Two proportions, odds ratio (z-test on the log odds ratio)

Proportions & binary Validated 7 published examples

Compares the response rates of two parallel groups as an odds ratio, by the normal approximation to the log odds ratio — the Wald test a logistic regression runs. The variance is taken at the anticipated proportions (Chow) or at the pooled proportion (Machin); a margin is entered as an odds ratio.

Also known as: odds ratio, log odds ratio, logistic regression, case-control, relative odds, binary outcome, 2x2 table.

Maturity

Validated: 7 published examples from 2 independent publications (Chow, Shao, Wang & Lokhnygina 2017; Machin, Campbell, Tan & Tan 2018) 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 — Switch on the assurance modifier: a prior on the effect turns the power into an expected power over the prior, and the size can then be solved for a target assurance (O’Hagan, Stevens & Campbell 2005).
  • Duration: not offered — This design has no time axis: each participant’s response is assessed once, so calendar time does not enter the power function.

Size axes:

  • Participants per arm (control arm when allocation is unequal) (participants_per_arm), 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

  • Control-group proportion (p_C) (p_control): a number, above 0 and below 1; default 0.25; entered as proportion (0-1) or percent The anticipated response rate in the control (or reference, or unexposed) group. The odds ratio is stated relative to it.
  • Odds ratio (treatment : control) (odds_ratio): a number, above 0; default 2 The anticipated ratio of the odds of response on treatment to the odds on control. 1 is no effect; 2 doubles the odds. Under a margin frame this is the assumed true ratio, which is often 1.
  • Log odds ratio (log_odds_ratio), advanced: a number, any finite number The natural logarithm of the odds ratio — the scale the test and any margin are computed on. Enter the odds ratio itself unless your source publishes on the log scale, as Chow’s margins do.
  • Treatment-group proportion (p_T) (p_treatment): a number, above 0 and below 1; entered as proportion (0-1) or percent The anticipated response rate in the treatment group; the odds ratio follows from it and the control rate.
  • Variance of the log odds ratio (variance): a choice; default anticipated The delta-method variance 1/(n_T p_T q_T) + 1/(n_C p_C q_C), evaluated at the anticipated proportions (Chow’s Equation 4.20, the Wald test logistic regression runs) or at the pooled proportion p̄ = (p_C + φ p_T)/(1 + φ) for both arms (Machin’s Equation 3.4, after Julious & Campbell). The pooled form gives slightly fewer participants when the odds ratio is far from one, and has no meaning under a margin.
    • anticipated At the anticipated proportions (Chow): The Wald test’s own variance; required under a margin.
    • pooled At the pooled proportion (Machin): Julious & Campbell’s approximation, which Machin’s Table 3.2 tabulates.

Sizes entered when another axis is solved for

  • Participants per arm (control arm when allocation is unequal) (participants_per_arm): a whole number, at least 1 Participants per arm (control arm when allocation is unequal). 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 effect as an odds ratio, its logarithm, or the treatment rate it implies given the control rate.

  • Odds ratio, the form’s default: The clinical quantity; a margin is entered on this scale too. (fields odds_ratio)
  • Log odds ratio: The canonical scale; Chow states his margins on it. (fields log_odds_ratio)
  • Treatment-group proportion: Enter the treatment rate; the odds ratio is derived. (fields p_treatment)

Modifiers admitted

  • posterior_error: Bayesian error rates (posterior error approach)
  • frame: Hypothesis frame
  • multiplicity: Multiplicity (a family of tests)
  • fdr: False-discovery rate (many features tested at once)
  • allocation: Allocation
  • dropout: Dropout
  • group_sequential: Group-sequential design
  • assurance: Assurance (prior on the design)

Published examples it reproduces (7)

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, §4.6.4.1 (Equation 4.20) relapse 0.40 against 0.25, odds ratio 2, two-sided alpha 0.05, power 0.80 => 156 per arm Sample size alpha = 0.05; p_control = 0.25; p_treatment = 0.4; power_target = 0.8; effect expressed as proportion participants_per_arm = 156 ± 0
Chow, Shao, Wang & Lokhnygina 2017, §4.6.4.2 (Equation 4.21) the same rates with a superiority margin of 0.2 on the log scale, one-sided alpha 0.05, power 0.80 => 241 on the page with z₀.₉₅ = 1.64; 241.5 with the exact quantile, so 242 here Sample size alpha = 0.05; frame = superiority_margin; log_odds_ratio = 0.693147; margin = 0.2; p_control = 0.25; power_target = 0.8; effect expressed as log_odds_ratio (with frame) participants_per_arm = 241 ± 1
Machin, Campbell, Tan & Tan 2018, §3.5 Example 3.4 (Equation 3.4) MRSA odds reduced from 1:3 to 1:5 (OR 0.6) from a control rate of 0.25, two-sided alpha 0.05, power 0.80 => N 729.40, 730 in all, 365 per group Sample size alpha = 0.05; odds_ratio = 0.6; p_control = 0.25; power_target = 0.8; variance = pooled participants_per_arm = 365 ± 0
Machin, Campbell, Tan & Tan 2018, §3.5 Example 3.5 (Equation 3.4, φ = 0.4286) asthma prevalence 0.20 in the reference group, OR 1.4, allocation 0.4286:1, two-sided alpha 0.05, power 0.90 => N 2594.3, 1815.97 in the reference group => 1816 Sample size allocation_ratio = 0.4286; alpha = 0.05; odds_ratio = 1.4; p_control = 0.2; power_target = 0.9; variance = pooled (with allocation) participants_per_arm = 1816 ± 0
Machin, Campbell, Tan & Tan 2018, §3.5 Example 3.6 (Equation 3.4, φ = 0.5) allele frequency 0.138 in hospital controls, OR 1.3991, one case per two controls, two-sided alpha 0.05, power 0.90 => N 3235.19, 2157 controls Sample size allocation_ratio = 0.5; alpha = 0.05; odds_ratio = 1.3991; p_control = 0.138; power_target = 0.9; variance = pooled (with allocation) participants_per_arm = 2157 ± 0
Machin, Campbell, Tan & Tan 2018, Table 3.2 (Equation 3.4, φ = 1) π₁ 0.05, OR 2, two-sided alpha 0.05, power 0.80 => N 972, 486 per group Sample size alpha = 0.05; odds_ratio = 2; p_control = 0.05; power_target = 0.8; variance = pooled participants_per_arm = 486 ± 0
Machin, Campbell, Tan & Tan 2018, Table 3.2 (Equation 3.4, φ = 1) π₁ 0.30, OR 3, two-sided alpha 0.05, power 0.80 => N 108, 54 per group Sample size alpha = 0.05; odds_ratio = 3; p_control = 0.3; power_target = 0.8; variance = pooled participants_per_arm = 54 ± 0

Sources

  1. Chow S-C, Shao J, Wang H, Lokhnygina Y. Sample Size Calculations in Clinical Research. 3rd ed. Boca Raton: Chapman & Hall/CRC; 2017. §4.6, Equations 4.20-4.22.
  2. Machin D, Campbell MJ, Tan SB, Tan SH. Sample Sizes for Clinical, Laboratory and Epidemiology Studies. 4th ed. Chichester: Wiley; 2018. §3.2, Equations 3.1 and 3.4, Table 3.2.
  3. Julious SA, Campbell MJ. Sample size calculations for ordered categorical data (letter). Stat Med. 1996;15(10):1065-1066.

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 →