Power Analysis for Survival Studies

Statistics
Year
1981
Type
Sample size determination for survival outcomes

What does it do?

Power analysis for survival studies estimates how many events, and from them how many participants, are needed for a log-rank test or Cox regression to detect a specified difference in survival between groups.

The planning approach on this page draws on Schoenfeld (1981), whose paper derives the asymptotic distribution of log-rank-type statistics under alternatives with arbitrary right censoring. It also shows that, with equal censoring distributions and proportional hazards, the sample-size formula for the F test comparing exponential samples is valid for the log-rank test. Lachin (1981) is cited as a general introduction to sample-size determination and power analysis in clinical trials.

The intuition behind the method

Unlike most study designs where you count subjects, survival studies are primarily driven by the number of events (deaths, failures, relapses). If you follow twice as many patients but few of them experience the event, the study can still lack power, because the log-rank test gains its information mainly from observed events. The planning calculation therefore has two linked parts: first determine the number of events required from the anticipated hazard ratio, then translate events into total sample size using the expected event probability, which depends on the event rate and the planned follow-up.

History

Schoenfeld's 1981 paper, 'The asymptotic properties of nonparametric tests for comparing survival distributions', derives the asymptotic distribution of log-rank-type statistics, modified Wilcoxon statistics and Peto–Peto rank-invariant tests under alternative hypotheses with arbitrary right censoring. It shows that the F-test sample-size formula for exponential samples carries over to the log-rank test under equal censoring and proportional hazards, which underpins events-based planning for the log-rank test. Lachin's 1981 paper is a general introduction to sample-size determination and power analysis for clinical trials.

When to use it

Apply this method when planning a study with a time-to-event outcome, such as a clinical trial with mortality or disease progression as the endpoint, a longitudinal cohort, a reliability test, or any design in which participants may be censored before the event occurs. Inputs to specify in advance include the expected hazard ratio (or the difference in median survival), the anticipated event rate, the allocation proportions, the planned follow-up, and whether survival is reasonably approximated by an exponential curve (Weibull is a common extension). The formulas assume proportional hazards and, for the result supported by Schoenfeld (1981), equal censoring distributions in the two groups. If proportional hazards is doubtful or censoring differs between arms, use simulation-based power analysis. Analytical formulas can also be unreliable when the number of events is small, so consider simulation for small studies.

Limitations and considerations

  • The formulas rely on proportional hazards; if the hazard ratio changes over follow-up or the survival curves cross, the single planning value no longer describes the effect and the calculation can mislead.
  • A prior estimate of the event rate and the follow-up duration is required; for a novel intervention these may be unavailable, and errors in them pass directly into the event target.
  • The exponential or Weibull baseline assumption is a modelling choice; if real survival curves depart from these shapes, the event probability used to convert the event count into a sample size may be wrong.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Handles right censoring directly: participants who are still event-free at the end of the observation window contribute partial information rather than being dropped, and the planning calculation reflects this through the required event count.
  • Turns a hazard ratio judged to be clinically meaningful into a concrete event target, so the required study size can be discussed in terms of a specific, stated effect.
  • The event-based formulation is explicit: the required number of events, the log hazard ratio and the allocation proportion appear as separate terms, so a reviewer can see which assumption drives the result.

Applications

  • Randomized clinical trials comparing survival between a new therapy and standard care.
  • Oncology studies where the primary endpoint is progression-free survival or overall survival.
  • Cardiovascular trials using major adverse cardiac events as the time-to-event outcome.
  • Reliability and product-lifecycle testing where time-to-failure is the outcome variable.
  • Epidemiological cohort studies assessing time to disease onset under different exposure levels.

How it works

How it works

1

The null hypothesis states that the two survival functions are identical over time; the alternative states that they differ, which for planning is usually expressed as a hazard ratio different from 1. Schoenfeld (1981) derives the asymptotic distribution of log-rank-type statistics under alternative hypotheses with arbitrary, possibly unequal, right censoring. The planning formula on this page links the required number of events to the logarithm of the hazard ratio.

Formula
H_0:\ S_1(t) = S_2(t) \quad H_1:\ S_1(t) \neq S_2(t)
2

The required number of events d is proportional to the square of the sum of the z-values for the significance level α and the desired power 1 − β, and inversely proportional to the square of log(HR) and to p₁(1 − p₁). Here p₁ is the proportion of participants allocated to group 1 (and 1 − p₁ the proportion allocated to group 2). The expression is the standard events-based approximation under proportional hazards. The 1981 abstract confirms only that, with equal censoring distributions in the two groups and proportional hazards, the sample-size formula for the F test comparing exponential samples is valid for the log-rank test. The analytical result is therefore best supported for an exponential baseline; a Weibull baseline is a common extension that the cited abstract does not confirm.

Formula
d \approx \frac{(z_{\alpha/2} + z_{\beta})^2}{[\log(\mathrm{HR})]^2 \cdot p_1(1-p_1)}
3

Total sample size N follows by dividing d by p̄_event, the overall probability that a participant has an event during the study. It is computed from the expected event rates in the two groups, the accrual pattern and the planned follow-up, averaged over the allocation proportions. Power is obtained by inverting the formula for d: the standardised effect is |log(HR)|·√(d·p₁(1 − p₁)), and power is Φ of this quantity minus z_{α/2}, with the allocation term inside the square root together with d. After the study, the log-rank statistic is compared with the chi-squared or standard normal distribution, and the hazard ratio should be reported with its 95% confidence interval alongside the significance decision.

Formula
N = \frac{d}{\bar{p}_{\mathrm{event}}}; \quad \text{power} = \Phi\!\left(|\log(\mathrm{HR})|\sqrt{d\,p_1(1-p_1)} - z_{\alpha/2}\right)

Common pitfalls

  • Planning the study around sample size alone without checking whether the required number of events is achievable within the budget and follow-up window.
  • Using the formula when hazard curves cross or the hazard ratio changes over time; proportional hazards should be checked before the calculation is used.
  • Applying the formula when censoring differs between the arms; the supported result assumes equal censoring distributions.
  • Ignoring expected dropout: unplanned losses reduce the effective event count, so the recruited sample must be inflated beyond the analytically derived N.
  • Assuming that less censoring always means more power: the 1981 abstract notes that in certain situations the power of the log-rank test falls as censoring decreases.
  • Relying on the analytical formulas when the expected number of events is very small; simulation-based power analysis is the safer alternative.

Frequently asked questions

Why is the number of events more important than the total sample size?

The log-rank test gains information from each observed event. Participants who are censored (lost to follow-up or event-free at study end) contribute less statistical information. Schoenfeld's formula shows that power depends on the event count d, not on N directly. A trial with 200 participants but only 20 events is far less informative than one with 200 participants and 120 events.

What hazard ratio should I use in planning?

Use the minimum clinically meaningful hazard ratio — the smallest difference between groups that would change clinical practice. This is ideally drawn from a pilot study, published meta-analyses, or clinical expert consensus. Using an overly optimistic HR produces an underpowered study; using an overly conservative one produces an unnecessarily large sample.

What if I cannot assume proportional hazards?

The Schoenfeld formula is derived under the proportional hazards assumption. If survival curves are expected to cross or if the treatment effect changes over time, simulation-based power analysis is a more appropriate approach, as it does not require a closed-form hazard model.

How do dropout and censoring affect the required sample size?

Administrative censoring (participants event-free at study end) is already accounted for through the event probability. Additional dropout due to withdrawal or loss to follow-up reduces the effective event count, so the total recruited sample must be inflated accordingly. If you expect 15 % dropout, divide the analytically required N by 0.85 to ensure the target event count is still met.

Related methods

Sources

  1. Schoenfeld, D. A. (1981). The asymptotic properties of nonparametric tests for comparing survival distributions. Biometrika, 68(1), 316–319.

    Open DOI reference
  2. Lachin, J. M. (1981). Introduction to sample size determination and power analysis for clinical trials. Controlled Clinical Trials, 2(2), 93–113.

    Open DOI reference