Tutorials › Bayesian Clinical Trials › Event-Driven Power for Time-To-Event Endpoints

Sample Size, Power and Assurance · Tutorial 235 of 696

Event-Driven Power for Time-To-Event Endpoints

Build and interpret a simulation-based conditional Bayesian power calculation for an event-driven time-to-event design.

Advanced 13 min read

What You'll Learn

  • Specify an event-driven survival design with a target number of events and a maximum follow-up time.
  • Simulate event times, censoring times, observed events, and person-time at risk.
  • Derive a conjugate posterior for an exponential treatment hazard under a stated control-hazard assumption.
  • Apply a posterior-probability success rule to each simulated trial.
  • Estimate conditional Bayesian power and its Monte Carlo standard error.
  • Compare power estimates across event targets while checking whether targets are attainable.

Why Event Targets Require Simulation

For a time-to-event endpoint, the information available for the treatment comparison depends on how many events occur, when they occur, and how much follow-up is censored. An event target therefore does not translate directly into a fixed sample size or a fixed amount of calendar time. Conditional Bayesian power answers a specific design question: if the treatment effect has a specified value, how often would this design meet its Bayesian success rule?

The calculation below uses a deliberately explicit exponential model. It is a useful setting for understanding the simulation steps, not a claim that every clinical endpoint has a constant hazard. In the worked design, all participants enter at time zero, allocation is equal, follow-up is capped at a fixed duration, and the trial aims to analyse at a prespecified number of events. A simulation can accommodate staggered entry by adjusting each participant’s time at risk.

Definition: Conditional Bayesian power at a specified data-generating parameter is the probability, under repeated trials generated at that parameter and under the specified design, that the trial meets its Bayesian success rule. It is estimated by simulating trials and taking the proportion that succeed. It is conditional on the assumed parameter values; it does not average over a prior distribution of treatment effects.

Model, Analysis, and Success Rule

Let \(\lambda_C\) and \(\lambda_T\) denote the constant event hazards in the control and treatment arms, measured per person-year. Define the hazard ratio as \(\theta=\lambda_T/\lambda_C\). The data-generating scenario specifies a fixed value of \(\theta\), with \(\theta<1\) representing a lower event hazard under treatment. For this tutorial’s analysis, assume the control hazard \(\lambda_C\) is known and fixed, for example from a reliable external source. The treatment hazard is unknown.

For each participant, the event time follows an exponential distribution with the hazard of their assigned arm. A separate censoring time is generated independently of the event time, conditional on treatment arm. Administrative censoring occurs at the maximum follow-up time \(\tau\). The independence assumption means that censoring does not depend on the participant’s unobserved event time after conditioning on the model; if it fails, this analysis can be biased.

For the treatment arm, let \(d_T\) be the number of observed events and \(Y_T\) the total observed person-time at risk. With independent, noninformative right censoring, the event-time likelihood for \(\lambda_T\), ignoring factors not involving it, is \(\lambda_T^{d_T}\exp(-\lambda_TY_T)\). Put a Gamma prior on \(\lambda_T\) with shape \(a_0\) and rate \(b_0\). The rate parameter \(b_0\) is in person-years when \(\lambda_T\) is measured per year.

$$ \lambda_T \sim \operatorname{Gamma}(a_0,b_0), \qquad \lambda_T \mid \text{data} \sim \operatorname{Gamma}(a_0+d_T,\ b_0+Y_T). $$

For a concrete decision rule, call the trial a success when the posterior probability that the treatment hazard is below the known control hazard exceeds 0.95:

$$ P(\theta<1\mid\text{data}) = P(\lambda_T<\lambda_C\mid\text{data}) >0.95. $$

This rule is a design choice, not a universal standard. It depends on the model, prior, control-hazard assumption, and threshold. The posterior probability is evaluated from the Gamma posterior distribution, usually with a numerical Gamma cumulative distribution function.

Simulating the Event-Driven Trial

Suppose there are \(n\) participants per arm, all enrolled at time zero, a maximum follow-up of \(\tau\) years, and a target of \(D\) total events. For each participant, generate an event time and an independent censoring time. The observed time is the earliest of the event time, censoring time, and \(\tau\). If the \(D\)th event occurs before \(\tau\), stop follow-up at that event time; otherwise, follow to \(\tau\). Person-time is accumulated only up to the applicable stopping time.

For a simple illustration, assume censoring times follow an exponential distribution with rate \(\gamma\), in addition to administrative censoring. This assumption is not needed for the posterior update itself; it is one way to generate censoring under a specified design scenario. In an actual design, the censoring distribution should reflect expected loss to follow-up and administrative follow-up.

1
Set the scenario and design.
Specify \(n\), \(\tau\), \(D\), the true \(\lambda_C\), the true \(\theta\), the censoring model, the prior, and the posterior success threshold.
2
Generate a trial.
Simulate each participant’s event and censoring times. Determine whether the event target is reached by \(\tau\), and calculate the observed events and person-time in each arm.
3
Apply the decision rule.
If the target is reached, update the treatment-hazard prior and evaluate \(P(\lambda_T<\lambda_C\mid\text{data})\). Record success if this probability exceeds 0.95. Under the design defined here, failure to reach \(D\) by \(\tau\) is recorded as no success.
4
Repeat and summarize.
Repeat the trial simulation \(M\) times. The estimated conditional power is the number of successes divided by \(M\).

Why the Posterior Update Has This Form

For observed event times \(t_i\) and censoring indicators \(\delta_i\) in the treatment arm, an exponential event-time contribution is proportional to \(\lambda_T^{\delta_i}\exp(-\lambda_Tt_i)\). Multiplying these contributions gives the likelihood in terms of the total event count and total observed exposure. Multiplication by the Gamma prior kernel then yields the posterior kernel:

$$ \begin{aligned} L(\lambda_T\mid\text{data}) &\propto \lambda_T^{d_T}\exp(-\lambda_TY_T),\\ \pi(\lambda_T\mid\text{data}) &\propto \lambda_T^{a_0-1}\exp(-b_0\lambda_T) \lambda_T^{d_T}\exp(-Y_T\lambda_T)\\ &\propto \lambda_T^{a_0+d_T-1} \exp\{-(b_0+Y_T)\lambda_T\}. \end{aligned} $$

The last expression is the kernel of a Gamma distribution with shape \(a_0+d_T\) and rate \(b_0+Y_T\). Independent, noninformative censoring allows the censoring contributions to be omitted from this likelihood for the event hazard. If censoring depends on the event risk in a way not captured by the model, that omission is not justified.

Worked Example: Applying the Posterior Rule to One Trial

Consider a hypothetical trial with known control hazard \(\lambda_C=0.10\) events per person-year. Use the prior \(\operatorname{Gamma}(1,1)\), with rate parameterization, and suppose a simulated trial produces zero treatment events over 20 person-years of treatment follow-up. Does it meet the 0.95 posterior success rule?

The posterior parameters are \(a_0+d_T=1+0=1\) and \(b_0+Y_T=1+20=21\). Thus \(\lambda_T\mid\text{data}\sim\operatorname{Gamma}(1,21)\), an exponential distribution with rate 21 per year.

$$ P(\lambda_T<0.10\mid\text{data}) =1-\exp(-21\times0.10) =1-\exp(-2.1) \approx 0.8775. $$

The posterior probability is about 0.878, which is below 0.95. This simulated trial is not a success under the stated rule. Zero observed events alone does not guarantee success: the amount of exposure and the prior also matter.

Estimating Conditional Power

For \(M\) simulated trials, let \(I_j=1\) if trial \(j\) reaches the event target and meets the posterior success rule, and \(I_j=0\) otherwise. The estimated conditional power is \(\hat{q}=\sum_{j=1}^{M} I_j/M\). Because the indicators are Bernoulli outcomes, an approximate Monte Carlo standard error is \(\sqrt{\hat{q}(1-\hat{q})/M}\). This describes simulation precision, not uncertainty about whether the assumed event rates or design scenario are correct.

Worked Example: Estimating Power at a Fixed Event Target

Suppose a hypothetical design has 220 participants per arm, maximum follow-up \(\tau=5\) years, and an event target \(D=80\). The simulated scenario uses \(\lambda_C=0.10\) per year, true \(\theta=0.70\), and independent exponential dropout with rate \(\gamma=0.02\) per year. The analysis uses the \(\operatorname{Gamma}(1,1)\) treatment-hazard prior and the success rule above. A hypothetical run of \(M=5{,}000\) simulated trials records 3,650 successes.

The estimated conditional power is \(3{,}650/5{,}000=0.730\), or 73.0%. Its Monte Carlo standard error is

$$ SE(\hat{q})= \sqrt{\frac{0.730(1-0.730)}{5{,}000}} = \sqrt{0.00003942} \approx 0.00628. $$

Thus, simulation error alone is about 0.63 percentage points. The estimate is conditional on a true hazard ratio of 0.70, the specified baseline hazard and dropout rate, and all other design assumptions. It is not a guarantee that a future trial has a 73% chance of success if those assumptions differ.

Varying the Event Target

A larger event target will often provide more information about the treatment effect, but it can also take longer to reach and may not be reached by the maximum follow-up time. The power calculation should therefore repeat the entire stopping and analysis process for each candidate target. Keep the rest of the design and data-generating scenario fixed when the aim is to compare targets.

Worked Example: Comparing Three Event Targets

Use the same hypothetical scenario as above: 220 participants per arm, five years of maximum follow-up, \(\lambda_C=0.10\) per year, true \(\theta=0.70\), dropout rate \(0.02\) per year, the same prior and success rule, and \(M=5{,}000\) simulated trials per target. Suppose the following illustrative simulation results are obtained.

Event target \(D\)Successful trialsEstimated conditional power
502,580 of 5,0000.516
803,650 of 5,0000.730
1103,830 of 5,0000.766

For example, the estimate at \(D=110\) is \(3{,}830/5{,}000=0.766\), or 76.6%. The estimates rise across these targets, but the increase from 80 to 110 events is smaller than the increase from 50 to 80. Before choosing a target, also report how often each target was reached by five years. A target that is rarely attained can reduce overall success under the specified design, even if trials that reach it have informative data. These particular numbers are illustrative simulation output, not results from a clinical study.

Diagnostics, Alternatives, and Limitations

Check the implementation before interpreting the estimate. Confirm that simulated event and censoring times are nonnegative, person-time is accumulated only while a participant remains at risk, and the total event count stops at the target when it is reached. Compare event rates and event-target attainment with rough expectations under the assumed hazards. Inspect whether treatment and control event counts, follow-up, and censoring patterns look plausible. Re-run the simulation with more replicates if Monte Carlo error is large relative to differences between candidate designs.

A common mistake is to treat the target number of events as if it must occur. If a design has a maximum follow-up, some simulated trials may not reach the target. Dropping those trials from the denominator estimates success conditional on attaining the target, not the overall design success probability defined here. Keep them as failures when the operational rule requires the target by the cap, or report the conditional-on-attainment quantity separately and label it precisely.

Another important limitation is the assumption that the control hazard is known. In clinical trials it is usually estimated, and uncertainty in that estimate can affect the posterior treatment comparison. The model also assumes constant hazards and independent censoring; nonproportional hazards, delayed treatment effects, competing events, or informative dropout may call for a different data-generating and analysis model. A Bayesian Cox model or a model with uncertain baseline hazards may be more appropriate, but requires corresponding posterior computation in each simulated trial.

A frequentist log-rank or Cox-model power calculation is a common alternative, often using an approximation based primarily on the number of events. Such calculations can be efficient for planning under their assumptions, but they do not directly estimate the probability of crossing this particular posterior decision threshold under the stated simulation model. Simulation is more flexible about censoring, follow-up caps, and decision rules, at the cost of computational effort and dependence on correctly specified assumptions. Neither approach repairs a mismatch between the assumed and plausible event-time process.

Key takeaway: Event-driven conditional Bayesian power is the probability of reaching a prespecified Bayesian success rule under repeated simulated trials at a fixed data-generating scenario. Its estimate must reflect event-time variation, censoring, the event-target stopping rule, and the possibility that a target is not reached.

Check Your Understanding

Answer each question, then compare with the solutions below.

  1. Under the exponential model, what two treatment-arm data summaries determine the Gamma posterior when the prior is fixed?
  2. Why should a trial that misses its event target by the maximum follow-up time not silently disappear from the power denominator?
  3. If 2,000 simulated trials produce 1,500 successes, calculate the estimated conditional power and its approximate Monte Carlo standard error.
  4. Name two assumptions in the worked model that could make its power estimate unsuitable for a particular clinical trial.

Solutions. (1) The observed treatment event count \(d_T\) and total treatment person-time \(Y_T\) determine the posterior shape and rate: \(a_0+d_T\) and \(b_0+Y_T\). (2) Under the stated design rule, missing the target by the cap is no success. Excluding such trials changes the denominator and estimates success conditional on reaching the target rather than overall design success. (3) The estimate is \(1{,}500/2{,}000=0.750\). The Monte Carlo standard error is \(\sqrt{0.750(0.250)/2{,}000}=\sqrt{0.00009375}\approx0.00968\), or about 0.97 percentage points. (4) Examples include constant exponential hazards, independent censoring, and a known control hazard. Any two are sufficient; whether they are reasonable depends on the clinical setting and available information.

Clinical Biostats