Tutorials › Bayesian Clinical Trials › Time-to-Event Analysis With External Controls

External and Real-World Controls · Tutorial 385 of 696

Time-to-Event Analysis With External Controls

Learn how to make external-control survival comparisons interpretable by aligning time zero, adjusting for measured covariates, and summarizing posterior survival contrasts.

Advanced 15 min read

What You'll Learn

  • Define a comparable time origin and endpoint for trial and external-control patients.
  • State the assumptions behind covariate-adjusted Bayesian survival comparisons.
  • Interpret a posterior hazard ratio without confusing it with a marginal survival difference.
  • Calculate standardized survival probabilities for a defined target population.
  • Diagnose departures from proportional hazards and recognize when a constant hazard ratio is inadequate.
  • Distinguish time-to-event censoring from competing events without treating competing risks as ordinary censoring.

Why Time Zero Matters

A time-to-event comparison depends on more than the event dates. It also depends on when follow-up begins, which patients are eligible at that point, how the event is defined, and how censoring is handled. These choices are especially consequential when trial participants are compared with patients assembled from a separate registry or routine-care data source. If the sources start follow-up at different clinical milestones, the estimated contrast can reflect that misalignment rather than differences between treatment strategies.

For example, starting external-control follow-up at diagnosis while starting trial follow-up at randomization gives the two groups different periods at risk. A patient must survive long enough after diagnosis to enter a trial; counting that earlier period only for the external control can create a misleading advantage or disadvantage. The time origin should represent the same decision point in both sources, such as meeting eligibility criteria and beginning the treatment strategy being compared.

Definition: For a time-to-event analysis, the time origin is the specified start of follow-up, and the event time is the elapsed time from that origin to the defined event. A participant who has not had the event by their last observed follow-up is censored at that time. Comparable groups require aligned eligibility, time origins, event definitions, and follow-up rules.

Worked Example: Aligning Follow-Up Before Comparing Survival

Suppose a hypothetical trial begins follow-up at randomization. An external-control patient is diagnosed at month 0, becomes eligible for the treatment decision at month 6, and has the event at month 9. The external registry records diagnosis-to-event time as 9 months.

For the comparison, suppose the common time origin is the treatment-decision point at month 6. The patient's comparable event time is therefore \(9-6=3\) months. Counting 9 months for this patient while counting from randomization for trial participants would compare different time intervals.

If the patient had no event by month 12, the aligned follow-up would instead be \(12-6=6\) months and the observation would be censored at 6 months. The example assumes that eligibility and event dates are recorded consistently and that month 6 genuinely corresponds to the same clinical decision point used for trial participants. If the external data cannot establish that point, the time origin is not reliably aligned and the comparison needs redesign or sensitivity analysis.

Adjusted Bayesian Survival Models

Let \(A=1\) denote trial treatment and \(A=0\) denote the external control. Let \(X\) denote measured baseline covariates, such as age, disease severity, or prior treatment. A survival function \(S_a(t\mid X)\) is the probability of remaining event-free beyond time \(t\), conditional on treatment group \(a\) and covariates \(X\). The hazard \(h_a(t\mid X)\) is the instantaneous event rate at time \(t\), conditional on having remained event-free until then.

One useful model is a piecewise exponential proportional-hazards model. Divide follow-up into prespecified intervals, indexed by \(j\), and let the baseline hazard be constant within each interval. The model is

$$ h_a(t\mid X)=\lambda_{0j}\exp\{\beta a+\gamma^\mathsf{T}X\},\qquad t\text{ in interval }j. $$

Here \(\lambda_{0j}\) is the baseline hazard in interval \(j\), \(\beta\) is the treatment coefficient, and \(\gamma\) contains covariate coefficients. Under this model, the treatment hazard ratio is \(\exp(\beta)\), conditional on the included covariates, and is assumed constant over time. A Bayesian analysis assigns priors to the unknown coefficients and baseline hazards, then combines the likelihood with those priors to obtain a posterior distribution. For example, a regularizing prior might be \(\beta\sim N(0,1.5^2)\); the baseline-hazard priors must also keep hazards positive.

For participant \(i\), let \(T_i\) be observed follow-up time and \(\delta_i=1\) if the event is observed, or 0 if the observation is censored. Conditional on the model parameters, the contribution to the likelihood is

$$ L_i=h_{A_i}(T_i\mid X_i)^{\delta_i}S_{A_i}(T_i\mid X_i). $$

An observed event contributes its hazard at the event time as well as survival up to that time. A censored observation contributes survival only up to its censoring time. This likelihood requires censoring to be independent of the event time conditional on treatment and included covariates. If loss to follow-up depends on unobserved prognosis even after conditioning, this model does not automatically correct the resulting bias.

The treatment coefficient also needs careful interpretation. Trial assignment may be randomized within the trial, but membership in the external-control group is not thereby randomized. A causal interpretation requires, among other conditions, that important confounders of source or treatment group and outcome are measured and adjusted, and that comparable patients have a positive chance of appearing in each group. It also requires compatible treatment definitions, endpoint ascertainment, and time origins. These are substantive assumptions, not consequences of Bayesian estimation. The earlier material on Evaluating External-Control Selection Bias is relevant to assessing whether the groups are plausibly comparable.

Worked Example: Interpreting a Posterior Hazard Ratio

In a hypothetical adjusted analysis, suppose the posterior distribution of the treatment coefficient is approximately normal with mean \(-0.51\) and standard deviation \(0.24\). The model uses the event hazard per month and assumes proportional hazards after adjustment for its stated baseline covariates.

The posterior mean coefficient implies a hazard ratio of

$$ \exp(-0.51)=0.600. $$

Thus, under the model, the estimated event hazard in the trial-treatment group is about 0.60 times the hazard in the external-control group at a given time, conditional on the covariates. This is a relative instantaneous rate, not a 40-percentage-point difference in event probability.

A central 95% posterior interval for the coefficient is approximately \(-0.51\pm1.96(0.24)=[-0.980,-0.040]\). Transforming the endpoints gives a 95% posterior interval for the hazard ratio of

$$ [\exp(-0.980),\exp(-0.040)]=[0.375,0.961]. $$

Under this approximate posterior, the probability that \(\beta<0\), or equivalently that the hazard ratio is below 1, is \(\Phi(0.51/0.24)=\Phi(2.125)\approx0.983\). This is a posterior probability conditional on the model, priors, and data. It is not the probability that an unadjusted causal benefit exists. The causal interpretation still depends on the comparability assumptions.

From Conditional Models to Standardized Survival

A conditional hazard ratio is not the only useful summary, and it may not be the most clinically direct one. Survival probabilities at a specified time can be standardized to a target population, such as the trial-eligible population. Standardization means predicting survival under each treatment for the covariate values in that target population and then averaging those predictions using the target population's covariate distribution.

For posterior draw \(m\), let \(S_a^{(m)}(t\mid X_i)\) be the predicted survival for target-population participant \(i\) under treatment \(a\). With \(N\) target participants and equal target weights, the standardized survival is

$$ S_a^{(m)}(t)=\frac{1}{N}\sum_{i=1}^{N}S_a^{(m)}(t\mid X_i). $$

The standardized survival difference at time \(t\) for that draw is \(S_1^{(m)}(t)-S_0^{(m)}(t)\). Repeating this calculation over posterior draws produces a posterior distribution for the difference, from which a posterior mean, credible interval, or posterior probability of a positive difference can be reported. The result is tied to the named target population and time point; changing either can change the estimate.

The piecewise exponential model also gives a direct justification for the survival calculation. For a hazard \(h(t\mid X)\), survival through time \(t\) is the exponential of the negative cumulative hazard, where the cumulative hazard is the integrated hazard from 0 to \(t\):

$$ S(t\mid X)=\exp\left\{-\int_0^t h(u\mid X)\,du\right\}. $$

Within an interval with constant hazard \(\lambda\) lasting \(d\) time units, the cumulative hazard is \(\lambda d\), so survival across that interval is \(\exp(-\lambda d)\). Across successive intervals, cumulative hazards add, giving survival equal to the exponential of minus their sum. This derivation explains why interval-specific hazards and interval boundaries affect predicted survival, even when the fitted model is otherwise well behaved.

Worked Example: Standardizing 12-Month Survival

Suppose a hypothetical target population is 60% lower-risk and 40% higher-risk at baseline. At one representative posterior draw from an adjusted model, predicted 12-month survival is 0.84 for trial treatment and 0.72 for external control in the lower-risk stratum; it is 0.68 and 0.50, respectively, in the higher-risk stratum.

The standardized trial-treatment survival is

$$ S_1(12)=0.60(0.84)+0.40(0.68)=0.504+0.272=0.776. $$

The standardized external-control survival is

$$ S_0(12)=0.60(0.72)+0.40(0.50)=0.432+0.200=0.632. $$

At this draw, the standardized survival difference is \(0.776-0.632=0.144\), or 14.4 percentage points at 12 months. It means that, for this target population and model draw, predicted event-free survival is 14.4 percentage points higher under trial treatment. It is not a complete description of survival at all times, nor does one draw quantify posterior uncertainty. In an analysis, the calculation is repeated for every posterior draw; a reported interval and posterior probability must come from that full distribution.

Checking Proportional Hazards and Other Failure Modes

The proportional-hazards assumption says that the treatment hazard ratio is constant over follow-up, conditional on the modeled covariates. It can be questionable when effects are delayed, diminish, or change direction. A single hazard ratio can then conceal clinically important time patterns. Diagnostics should include plots of estimated survival by group, examination of time-specific contrasts, and assessment of whether adding treatment-by-time terms changes the fit or the substantive conclusions. In a Bayesian analysis, posterior uncertainty in these quantities should be shown rather than treating a noisy pattern as definitive evidence of a violation.

If proportional hazards is not plausible, a time-varying treatment coefficient can be considered, for example \(\beta(t)\), or a more flexible survival model can be fitted. The reported comparison should then emphasize time-specific standardized survival or another clearly defined time-based summary rather than forcing a constant hazard ratio. The choice of intervals in a piecewise model should also be examined: too few intervals can miss changes in hazard, while too many can leave sparse intervals poorly informed by events.

Other important checks concern data and design. Confirm that event dates, censoring dates, endpoint definitions, eligibility, and covariates are measured comparably across sources. Inspect whether follow-up is truncated differently, whether some target covariate profiles lack external controls, and whether conclusions change under reasonable modeling choices. A model cannot recover information for covariate patterns with no meaningful overlap or remove bias from unmeasured confounding merely by including a prior.

ApproachWhat it summarizesMain caution
Adjusted proportional-hazards modelConditional hazard ratioRequires a constant hazard ratio over time and careful causal assumptions for external controls
Standardized survivalEvent-free probability at a specified time in a target populationDepends on the target population, time point, and survival-model adequacy
Time-varying or flexible survival modelTime-dependent hazard or survival contrastsMay require more data and careful specification to avoid unstable estimates

A related alternative is restricted mean survival time through a fixed horizon: the expected event-free time accumulated up to that horizon. It can provide an interpretable time-scale contrast when hazards are not proportional, but it is a different estimand from a hazard ratio or survival difference at a single time. The horizon must be chosen where follow-up supports estimation.

Common Mistakes and Limitations

  • Using different time origins. A comparison of diagnosis-to-event time with randomization-to-event time does not represent the same follow-up period. Define and implement a common eligibility and start point first.
  • Reading a hazard ratio as a survival difference. A hazard ratio compares instantaneous rates among those still event-free; it does not directly state how many additional patients survive to a given time.
  • Treating adjustment as randomization. Covariate adjustment addresses measured variables under a correctly specified analysis. It does not guarantee exchangeability or eliminate unmeasured confounding in external controls.
  • Reporting a constant hazard ratio despite clear time variation. Check proportional hazards and use time-specific summaries or a flexible model when a constant effect is not credible.
  • Assuming censoring is harmless. Censoring contributes valid information under the stated conditional independence assumption. Informative loss to follow-up can bias results and requires additional modeling or sensitivity analysis.

These methods compare time to a specified event. If a different event prevents the event of interest from occurring, treating that event as ordinary censoring can answer the wrong probability question. The event structure and estimand must be defined before choosing the survival analysis.

Key takeaway: An interpretable external-control survival comparison starts with a common time origin and endpoint, uses an adjusted model whose assumptions are assessed, and reports survival contrasts standardized to a clearly stated population. Posterior precision does not compensate for misaligned follow-up or weak comparability.

Check Your Understanding

Try each question, then compare your reasoning with the solutions.

  1. An external-control patient's registry follow-up starts 4 months before the matched trial eligibility date. What must be done before comparing event times?
  2. A posterior hazard-ratio interval is 0.70 to 1.10. Does this directly give a 40-percentage-point survival benefit? Explain.
  3. In a target population that is 25% higher-risk and 75% lower-risk, predicted survival is 0.60 and 0.80 in the higher- and lower-risk groups under treatment, and 0.45 and 0.70 under control. Calculate standardized survival under each strategy and their difference.
  4. What does a treatment-by-time pattern suggest about a proportional-hazards model?

Solutions. (1) Re-express follow-up from the common eligibility point and ensure that eligibility, time zero, and event definitions match; if the necessary dates are unavailable, the comparison may not be identifiable from those records. (2) No. The interval describes uncertainty in a relative instantaneous hazard ratio, not a survival-probability difference. Survival at a specified time requires model-based survival predictions. (3) Treatment: \(0.25(0.60)+0.75(0.80)=0.75\). Control: \(0.25(0.45)+0.75(0.70)=0.6375\). The standardized survival difference is \(0.75-0.6375=0.1125\), or 11.25 percentage points for this target population and time point. (4) It may indicate that the treatment hazard ratio changes over time, making a constant proportional-hazards summary inadequate; examine the pattern and consider a time-varying or flexible model.

Clinical Biostats