TriaLab Power Studio · Method

Mediation effect in Cox regression

Regression models Validated 6 published examples

Sizes a survival study to test whether a mediator carries the effect of an exposure on the hazard — Vittinghoff, Sen and McCulloch’s test of the mediator’s coefficient in the Cox model with exposure and mediator, from the mediator’s spread, its correlation with the exposure and the proportion of subjects with an event (PASS 825).

Also known as: mediation, indirect effect, mediator, Cox regression, Vittinghoff, survival, causal pathway.

Maturity

Validated: 6 published examples from 2 independent publications (PASS; Vittinghoff, Sen & McCulloch 2009) 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 width for a mediator’s coefficient is not sized here: the G*Power manual offers none and PASS’s chapter is not on disk.
  • 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 — Follow-up enters only through the probability of being uncensored, which is an input; calendar time is not modelled.

Size axes:

  • Subjects (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

  • Mediator’s coefficient (β_M) (mediator_coefficient): a number, any finite number; default 0.3 The log hazard ratio per unit of the mediator in the model with exposure and mediator: log 1.5 for a hazard ratio of 1.5.
  • Correlation of exposure and mediator (ρ_XM) (correlation_x_m): a number, above -1 and below 1; default 0.3 The stronger the exposure predicts the mediator, the less independent information the mediator carries: the effective size is N(1 − ρ²).
  • Mediator (mediator): a choice; default continuous Continuous with a standard deviation, or binary with a prevalence, whose variance P(1 − P) takes the standard deviation’s place.
    • continuous Continuous: PASS’s Example 1.
    • binary Binary: Vittinghoff’s example.
  • Mediator’s standard deviation (σ_M) (mediator_sd): a number, above 0; default 1 For a continuous mediator; one if it is standardised. Ignored for a binary mediator.
  • Probability the mediator is present (P(M = 1)) (mediator_probability): a number, above 0 and below 1; default 0.5; entered as proportion (0-1) or percent For a binary mediator. Ignored for a continuous one.
  • Probability a subject is uncensored (ψ) (probability_uncensored): a number, above 0 and at most 1; default 0.7; entered as proportion (0-1) or percent The share of subjects expected to have the event by the end of follow-up; Nψ is the expected number of events.
  • Sidedness of the equality test (tails): a choice; default two_sided Two-sided unless the direction of the mediator’s effect is known in advance.
    • 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

  • Subjects (participants): a whole number, at least 1 Subjects. 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 (6)

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
PASS chapter 825, Example 1 (printed p. 825-3) continuous mediator (σ 1) correlated 0.3 with the exposure, ψ 0.7, β_M 0.2, two-sided 0.05, power 0.90 => 413 subjects Sample size alpha = 0.05; correlation_x_m = 0.3; mediator_coefficient = 0.2; mediator_sd = 1; power_target = 0.9; probability_uncensored = 0.7 participants = 413 ± 0
PASS chapter 825, Example 1 (printed p. 825-3) continuous mediator (σ 1) correlated 0.3 with the exposure, ψ 0.7, β_M 0.3, two-sided 0.05, power 0.90 => 184 subjects Sample size alpha = 0.05; correlation_x_m = 0.3; mediator_coefficient = 0.3; mediator_sd = 1; power_target = 0.9; probability_uncensored = 0.7 participants = 184 ± 0
PASS chapter 825, Example 1 (printed p. 825-3) continuous mediator (σ 1) correlated 0.3 with the exposure, ψ 0.7, β_M 0.4, two-sided 0.05, power 0.90 => 104 subjects Sample size alpha = 0.05; correlation_x_m = 0.3; mediator_coefficient = 0.4; mediator_sd = 1; power_target = 0.9; probability_uncensored = 0.7 participants = 104 ± 0
PASS chapter 825, Example 2 (printed p. 825-5), after Vittinghoff et al. 2009 p. 547 (PASS says p. 545) binary mediator present in a quarter, correlated 0.3 with the exposure, ψ 0.2, β_M log 1.5, one-sided 0.025, power 0.80 => 1399 subjects Sample size alpha = 0.025; correlation_x_m = 0.3; mediator = binary; mediator_coefficient = 0.4055; mediator_probability = 0.25; power_target = 0.8; probability_uncensored = 0.2; tails = one_sided participants = 1399 ± 0
Vittinghoff, Sen & McCulloch 2009, Stat Med 28:541–557, §6 (printed p. 547) binary mediator present in a quarter, correlated 0.3 with the exposure, ψ 0.2, β_M log 1.5, one-sided 0.025, power 0.80 => n = 1399 by equation (13) (1399.03, which the paper rounds to the nearest and the engine up: tolerance one) Sample size alpha = 0.025; correlation_x_m = 0.3; mediator = binary; mediator_coefficient = 0.405465; mediator_probability = 0.25; power_target = 0.8; probability_uncensored = 0.2; tails = one_sided participants = 1399 ± 1
Vittinghoff, Sen & McCulloch 2009, Stat Med 28:541–557, §6 (printed p. 547) the same => d = nψ = 280 expected events (280.0 at the engine’s 1400) Sample size alpha = 0.025; correlation_x_m = 0.3; mediator = binary; mediator_coefficient = 0.405465; mediator_probability = 0.25; power_target = 0.8; probability_uncensored = 0.2; tails = one_sided expected_events = 280 ± 0.5

Sources

  1. NCSS, LLC. PASS 2026 documentation, chapter 825: Tests of Mediation Effect in Cox Regression. Kaysville, UT: NCSS, LLC; 2026.
  2. Vittinghoff E, Sen S, McCulloch CE. Sample size calculations for evaluating mediation. Stat Med. 2009;28(4):541-557.

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 →