TriaLab Power Studio · Method

Log-rank test, events by Freedman's formula

Time-to-event Validated Free 30 published examples

Sizes a two-arm time-to-event trial on the number of events by Freedman’s formula — the classical alternative to Schoenfeld’s that Machin’s tables are built from, larger than it under equal allocation — then on the participants that yield them from the proportions event-free.

Also known as: log-rank, logrank, Freedman, hazard ratio, number of events, proportion surviving, survival, time to event, Machin.

Maturity

Validated: 30 published examples from 2 independent publications (Machin et al. 2018; PASS) reproduce on every build (ADR-0001 §58).

What it solves for

  • Sample size: offered.
  • Power: offered.
  • Detectable effect: not offered — The proportion of participants with an event is derived from the hazard ratio under the proportion-event-free and exponential spellings, so a hazard ratio solved at a fixed event probability would contradict its own table. Enter the hazard ratio and solve for the sample size or the power; for a detectable hazard ratio under the exponential model use the Lachin & Foulkes kernel.
  • Precision: not offered — The interval for the hazard ratio is stated on the log scale, ±z(1 + φ)/√(φD) from the number of events D (Jennison and Turnbull, equation 17.16), but no source on disk works an example of sizing to its width, 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 — Solving for the accrual or follow-up period that yields the required events is the event-driven projection row of M5, not yet built; here the event probability is entered.

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

  • Hazard ratio to detect (λ_T / λ_C) (hazard_ratio): a number, above 0; default 0.7 Treatment hazard over control hazard; below 1 favours the treatment. Under proportional hazards it is the same at every time.
  • Log hazard reduction, ln(λ_C / λ_T) = −ln HR (log_hazard_reduction): a number, any finite number; default 0.356675 Positive favours the treatment. The scale Schoenfeld’s test and a margin live on (Chow §7.3).
  • Control median time to event (M_C) (median_control): a number, above 0; default 12 Any time unit, the same for both medians; only their ratio is used (HR = M_C / M_T, Machin Equation 7.3).
  • Treatment median time to event (M_T) (median_treatment): a number, above 0; default 17.142857 In the same unit as the control median; longer favours the treatment.
  • Treatment proportion event-free at the end of the study (S_T) (survival_treatment): a number, above 0 and below 1; default 0.615572; entered as proportion (0-1) or percent Beside the control arm’s proportion from the events group’s ‘proportion event-free’ spelling, which this spelling needs: HR = ln S_T / ln S_C (Machin Equation 7.3; PASS 702’s S1 and S2).
  • Probability of an event during the study, pooled over arms (Ψ) (event_probability): a number, above 0 and at most 1; default 0.442214; entered as proportion (0-1) or percent The anticipated proportion of all participants who have the event before the study ends — Machin’s Ψ, Chow’s d. Events = participants × Ψ.
  • Control proportion event-free at the end of the study (S_C) (survival_control): a number, above 0 and below 1; default 0.5; entered as proportion (0-1) or percent The treatment arm’s proportion follows from the hazard ratio as S_T = S_C^HR (Machin Equation 7.4). Planning at the control median makes this 0.5.
  • Probability of an event, control arm (p_C) (event_probability_control): a number, above 0 and at most 1; default 0.5; entered as proportion (0-1) or percent The proportion of the control arm expected to have the event during the study (PASS 730’s Pev1).
  • Probability of an event, treatment arm (p_T) (event_probability_treatment): a number, above 0 and at most 1; default 0.384428; entered as proportion (0-1) or percent The proportion of the treatment arm expected to have the event during the study (PASS 730’s Pev2); entered independently of the hazard ratio.
  • Control hazard rate (λ_C) (hazard_control): a number, above 0; default 0.057762 The constant event rate per unit time on the control arm: ln 2 / median, or −ln S(τ) / τ from a proportion event-free at time τ. Any time unit, the same for the hazard and both periods.
  • Accrual period (t_a) (accrual_duration): a number, above 0; default 24 How long recruitment lasts, with uniform entry. Any time unit, the same for the hazard and both periods.
  • Follow-up after accrual (t_f) (follow_up_duration): a number, at least 0; default 12 How long the last recruited participant is followed. Any time unit, the same for the hazard and both periods.
  • Sidedness of the equality test (tails): a choice; default two_sided Machin’s tables are two-sided; PASS 702 offers both (its Example 3 is one-sided).
    • 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

  • 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 treatment effect as a hazard ratio, its log reduction, two medians, or the treatment arm’s proportion event-free beside the control arm’s.

  • Hazard ratio, the form’s default: The quantity a protocol prints. (fields hazard_ratio)
  • Log hazard reduction: −ln HR, the canonical scale. (fields log_hazard_reduction)
  • Two medians: HR = M_C / M_T under proportional hazards. (fields median_control, median_treatment)
  • Treatment proportion event-free: HR = ln S_T / ln S_C; needs the control proportion from the events group. (fields survival_treatment)

Events — How many participants will have the event: as a pooled probability, the control arm’s proportion event-free, each arm’s probability, or an exponential model with accrual and follow-up.

  • Pooled event probability: Ψ directly, as Chow enters it. (fields event_probability)
  • Control proportion event-free, the form’s default: S_C at the end of the study; S_T = S_C^HR follows from the hazard ratio. (fields survival_control)
  • Event probability per arm: p_C and p_T entered separately, as PASS 730 does. (fields event_probability_control, event_probability_treatment)
  • Exponential model with accrual and follow-up: Constant hazards, uniform entry over t_a, then t_f more (Wu 2018; PASS 876 and 877). (fields hazard_control, accrual_duration, follow_up_duration)

Modifiers admitted

  • posterior_error: Bayesian error rates (posterior error approach)
  • 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 (30)

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
Machin et al. 2018, Example 7.2 hazard ratio 0.545, half the control arm event-free (planning at the median), two-sided alpha 0.05, power 0.80 => 91 events, 224 participants, 112 per arm Sample size alpha = 0.05; hazard_ratio = 0.545; power_target = 0.8; survival_control = 0.5; events expressed as survival participants_per_arm = 112 ± 0
PASS chapter 702, Example 2 control 0.50 event-free against 0.6, two-sided alpha 0.05, power 0.7 => 300 per arm Sample size alpha = 0.05; power_target = 0.7; survival_control = 0.5; survival_treatment = 0.6; effect expressed as survival_treatment; events expressed as survival participants_per_arm = 300 ± 0
PASS chapter 702, Example 2 control 0.50 event-free against 0.6, two-sided alpha 0.05, power 0.75 => 337 per arm Sample size alpha = 0.05; power_target = 0.75; survival_control = 0.5; survival_treatment = 0.6; effect expressed as survival_treatment; events expressed as survival participants_per_arm = 337 ± 0
PASS chapter 702, Example 2 control 0.50 event-free against 0.6, two-sided alpha 0.05, power 0.8 => 381 per arm Sample size alpha = 0.05; power_target = 0.8; survival_control = 0.5; survival_treatment = 0.6; effect expressed as survival_treatment; events expressed as survival participants_per_arm = 381 ± 0
PASS chapter 702, Example 2 control 0.50 event-free against 0.6, two-sided alpha 0.05, power 0.85 => 436 per arm Sample size alpha = 0.05; power_target = 0.85; survival_control = 0.5; survival_treatment = 0.6; effect expressed as survival_treatment; events expressed as survival participants_per_arm = 436 ± 0
PASS chapter 702, Example 2 control 0.50 event-free against 0.6, two-sided alpha 0.05, power 0.9 => 510 per arm Sample size alpha = 0.05; power_target = 0.9; survival_control = 0.5; survival_treatment = 0.6; effect expressed as survival_treatment; events expressed as survival participants_per_arm = 510 ± 0
PASS chapter 702, Example 2 control 0.50 event-free against 0.6, two-sided alpha 0.05, power 0.95 => 630 per arm Sample size alpha = 0.05; power_target = 0.95; survival_control = 0.5; survival_treatment = 0.6; effect expressed as survival_treatment; events expressed as survival participants_per_arm = 630 ± 0
PASS chapter 702, Example 2 control 0.50 event-free against 0.62, two-sided alpha 0.05, power 0.7 => 208 per arm Sample size alpha = 0.05; power_target = 0.7; survival_control = 0.5; survival_treatment = 0.62; effect expressed as survival_treatment; events expressed as survival participants_per_arm = 208 ± 0
PASS chapter 702, Example 2 control 0.50 event-free against 0.62, two-sided alpha 0.05, power 0.75 => 234 per arm Sample size alpha = 0.05; power_target = 0.75; survival_control = 0.5; survival_treatment = 0.62; effect expressed as survival_treatment; events expressed as survival participants_per_arm = 234 ± 0
PASS chapter 702, Example 2 control 0.50 event-free against 0.62, two-sided alpha 0.05, power 0.8 => 265 per arm Sample size alpha = 0.05; power_target = 0.8; survival_control = 0.5; survival_treatment = 0.62; effect expressed as survival_treatment; events expressed as survival participants_per_arm = 265 ± 0
PASS chapter 702, Example 2 control 0.50 event-free against 0.62, two-sided alpha 0.05, power 0.85 => 303 per arm Sample size alpha = 0.05; power_target = 0.85; survival_control = 0.5; survival_treatment = 0.62; effect expressed as survival_treatment; events expressed as survival participants_per_arm = 303 ± 0
PASS chapter 702, Example 2 control 0.50 event-free against 0.62, two-sided alpha 0.05, power 0.9 => 354 per arm Sample size alpha = 0.05; power_target = 0.9; survival_control = 0.5; survival_treatment = 0.62; effect expressed as survival_treatment; events expressed as survival participants_per_arm = 354 ± 0
PASS chapter 702, Example 2 control 0.50 event-free against 0.62, two-sided alpha 0.05, power 0.95 => 438 per arm Sample size alpha = 0.05; power_target = 0.95; survival_control = 0.5; survival_treatment = 0.62; effect expressed as survival_treatment; events expressed as survival participants_per_arm = 438 ± 0
PASS chapter 702, Example 2 control 0.50 event-free against 0.64, two-sided alpha 0.05, power 0.7 => 153 per arm Sample size alpha = 0.05; power_target = 0.7; survival_control = 0.5; survival_treatment = 0.64; effect expressed as survival_treatment; events expressed as survival participants_per_arm = 153 ± 0
PASS chapter 702, Example 2 control 0.50 event-free against 0.64, two-sided alpha 0.05, power 0.75 => 172 per arm Sample size alpha = 0.05; power_target = 0.75; survival_control = 0.5; survival_treatment = 0.64; effect expressed as survival_treatment; events expressed as survival participants_per_arm = 172 ± 0
PASS chapter 702, Example 2 control 0.50 event-free against 0.64, two-sided alpha 0.05, power 0.8 => 195 per arm Sample size alpha = 0.05; power_target = 0.8; survival_control = 0.5; survival_treatment = 0.64; effect expressed as survival_treatment; events expressed as survival participants_per_arm = 195 ± 0
PASS chapter 702, Example 2 control 0.50 event-free against 0.64, two-sided alpha 0.05, power 0.85 => 223 per arm Sample size alpha = 0.05; power_target = 0.85; survival_control = 0.5; survival_treatment = 0.64; effect expressed as survival_treatment; events expressed as survival participants_per_arm = 223 ± 0
PASS chapter 702, Example 2 control 0.50 event-free against 0.64, two-sided alpha 0.05, power 0.9 => 261 per arm Sample size alpha = 0.05; power_target = 0.9; survival_control = 0.5; survival_treatment = 0.64; effect expressed as survival_treatment; events expressed as survival participants_per_arm = 261 ± 0
PASS chapter 702, Example 2 control 0.50 event-free against 0.64, two-sided alpha 0.05, power 0.95 => 322 per arm Sample size alpha = 0.05; power_target = 0.95; survival_control = 0.5; survival_treatment = 0.64; effect expressed as survival_treatment; events expressed as survival participants_per_arm = 322 ± 0
PASS chapter 702, Example 3 (Machin et al. 1997, p. 180) control 0.25 event-free against 0.50, one-sided alpha 0.05, power 0.90 => 78 events, 62 per arm Sample size alpha = 0.05; power_target = 0.9; survival_control = 0.25; survival_treatment = 0.5; tails = one_sided; effect expressed as survival_treatment; events expressed as survival participants_per_arm = 62 ± 0
PASS chapter 702, Example 4 (Fayers & Machin 2016, p. 297) control 0.65 event-free against 0.75, two-sided alpha 0.05, power 0.80 => 660 in total, 330 per arm Sample size alpha = 0.05; power_target = 0.8; survival_control = 0.65; survival_treatment = 0.75; effect expressed as survival_treatment; events expressed as survival participants_per_arm = 330 ± 0
PASS chapter 702, Example 5 control 0.4 event-free against 0.55, two-sided alpha 0.05, power 0.80 => 338 in total, 169 per arm Sample size alpha = 0.05; power_target = 0.8; survival_control = 0.4; survival_treatment = 0.55; effect expressed as survival_treatment; events expressed as survival participants_per_arm = 169 ± 0
PASS chapter 702, Example 1 control 0.50 event-free against 0.70, 75 per arm, two-sided alpha 0.05 => power 0.69939 Power alpha = 0.05; participants_per_arm = 75; survival_control = 0.5; survival_treatment = 0.7; effect expressed as survival_treatment; events expressed as survival power = 0.69939 ± 0.000015
PASS chapter 702, Example 1 control 0.50 event-free against 0.70, 100 per arm, two-sided alpha 0.05 => power 0.81772 Power alpha = 0.05; participants_per_arm = 100; survival_control = 0.5; survival_treatment = 0.7; effect expressed as survival_treatment; events expressed as survival power = 0.81772 ± 0.000015
PASS chapter 702, Example 1 control 0.50 event-free against 0.70, 125 per arm, two-sided alpha 0.05 => power 0.89345 Power alpha = 0.05; participants_per_arm = 125; survival_control = 0.5; survival_treatment = 0.7; effect expressed as survival_treatment; events expressed as survival power = 0.89345 ± 0.000015
PASS chapter 702, Example 1 control 0.50 event-free against 0.70, 150 per arm, two-sided alpha 0.05 => power 0.93955 Power alpha = 0.05; participants_per_arm = 150; survival_control = 0.5; survival_treatment = 0.7; effect expressed as survival_treatment; events expressed as survival power = 0.93955 ± 0.000015
PASS chapter 876, Example 1 survival 0.50 against 0.70 at two years (hazard ratio 0.51457), accrual 1, follow-up 2, two-sided alpha 0.05, power 0.90 => 110 per arm Sample size accrual_duration = 1; alpha = 0.05; follow_up_duration = 2; hazard_control = 0.346574; hazard_ratio = 0.514573; power_target = 0.9; events expressed as exponential participants_per_arm = 110 ± 0
PASS chapter 876, Example 1 survival 0.50 against 0.70 at two years (hazard ratio 0.51457), accrual 2, follow-up 2, two-sided alpha 0.05, power 0.90 => 98 per arm Sample size accrual_duration = 2; alpha = 0.05; follow_up_duration = 2; hazard_control = 0.346574; hazard_ratio = 0.514573; power_target = 0.9; events expressed as exponential participants_per_arm = 98 ± 0
PASS chapter 876, Example 1 survival 0.50 against 0.70 at two years (hazard ratio 0.51457), accrual 3, follow-up 2, two-sided alpha 0.05, power 0.90 => 90 per arm Sample size accrual_duration = 3; alpha = 0.05; follow_up_duration = 2; hazard_control = 0.346574; hazard_ratio = 0.514573; power_target = 0.9; events expressed as exponential participants_per_arm = 90 ± 0
PASS chapter 876, Example 2 (Wu 2018, pp. 75-76) survival 0.50 against 0.60 at three years, accrual 5, follow-up 3, one-sided alpha 0.05, power 0.90 => 576 in total, 288 per arm Sample size accrual_duration = 5; alpha = 0.05; follow_up_duration = 3; hazard_control = 0.231049; hazard_ratio = 0.736966; power_target = 0.9; tails = one_sided; events expressed as exponential participants_per_arm = 288 ± 0

Sources

  1. Freedman LS. Tables of the number of patients required in clinical trials using the logrank test. Stat Med. 1982;1(2):121-129.
  2. Machin D, Campbell MJ, Tan SB, Tan SH. Sample Sizes for Clinical, Laboratory and Epidemiology Studies. 4th ed. Chichester: Wiley; 2018. §7.2, Equations 7.7 and 7.8, Tables 7.1-7.3.
  3. NCSS. PASS Sample Size Software documentation, chapter 702: Logrank Tests (Freedman); chapter 876: Logrank Tests with Proportional Hazards (Freedman and Wu). Kaysville, UT: NCSS, LLC.

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 →