Tutorials › Bayesian Clinical Trials › Outcome Regression With External Controls

External and Real-World Controls · Tutorial 372 of 696

Outcome Regression With External Controls

Build and interpret outcome models for external-control comparisons, including interactions that let treatment effects vary with baseline covariates.

Advanced 11 min read

What You'll Learn

  • Define the outcome-regression estimand conditional on measured baseline covariates.
  • Specify linear, logistic, and count-outcome models for external-control comparisons.
  • Interpret treatment-by-covariate interactions on the model’s link scale and, where appropriate, the outcome scale.
  • Recognize the exchangeability, overlap, measurement, and model-form assumptions behind regression adjustment.
  • Identify when source and treatment indicators cannot be separated in the observed design.
  • Compare outcome regression with matching and weighting, and recognize model-checking warning signs.

Why Model the Outcome?

An external control group can provide information about outcomes under control when a concurrent randomized control group is unavailable or limited. Outcome regression uses measured baseline covariates to model the outcome in relation to treatment and covariates. It then compares the model’s treatment and control predictions at the same covariate values. This adjusts the comparison for the covariates included in the model, but it does not make unmeasured confounding disappear.

The central modeling choice is whether to assume a common treatment contrast across covariate values. If treatment effects or risks may vary, a model with only treatment and covariate main effects can be too restrictive. Treatment-by-covariate terms allow the fitted contrast to change with baseline characteristics. Their interpretation depends on the outcome model’s link function.

Definition: Let \(A=1\) denote receipt of the trial treatment and \(A=0\) denote control, let \(X\) be measured baseline covariates, and let \(Y\) be the outcome. An outcome regression specifies the conditional outcome distribution, or at least its mean, given \(A\) and \(X\). The treatment contrast at covariate value \(x\) compares the model’s outcomes under \(A=1\) and \(A=0\) while holding \(X=x\) fixed.

Model Specification and Assumptions

For a continuous outcome, a linear mean model is often written as

$$ E(Y\mid A,X)=\beta_0+\beta_A A+\beta_X^\mathsf{T}X+A\gamma^\mathsf{T}X. $$

Here, \(\beta_X^\mathsf{T}X\) represents covariate main effects, and \(A\gamma^\mathsf{T}X\) represents treatment-by-covariate interactions. With an identity link, the conditional mean difference at \(X=x\) is \(\beta_A+\gamma^\mathsf{T}x\). If \(\gamma=0\), the model assumes the conditional mean difference is constant over the modeled covariates. The same idea applies to generalized linear models:

$$ g\{E(Y\mid A,X)\}=\beta_0+\beta_A A+\beta_X^\mathsf{T}X+A\gamma^\mathsf{T}X, $$

where \(g\) is a chosen link function. For a binary outcome, the logit link models log odds; for a count outcome, a log link can model a rate when an exposure-time offset is included. Interactions then describe variation on the link scale. For example, a treatment-by-covariate interaction in a logistic model means that the conditional log odds ratio varies with that covariate; it does not directly say that the risk difference varies by the same amount.

An external-control analysis also needs assumptions beyond a well-fitted regression. The covariates should be defined and measured comparably across sources, refer to an appropriate baseline, and capture the important measured differences affecting both treatment selection and outcome. Conditional on those covariates, the potential outcomes under the treatment and control strategies must be comparable across the groups being contrasted. There must also be adequate covariate support: predictions for one group should not rely heavily on covariate patterns absent from the other. Finally, the outcome model must represent the conditional outcome relationship adequately for the intended comparison.

In a Bayesian implementation, a likelihood for the selected outcome model is combined with priors on its coefficients to obtain a posterior distribution. Priors should be specified on interpretable scales and should not be used to disguise weak covariate support or a poorly justified model. The details of posterior treatment-effect estimation are a separate step from choosing and interpreting the outcome regression.

Important design limitation: If every treated participant comes from the trial and every control comes from an external source, treatment status and data source are perfectly aligned. A separate treatment effect and source effect cannot both be identified from those data without additional information or assumptions. Covariate adjustment does not estimate an unobserved source difference; the comparison relies on the assumption that no relevant residual source difference remains after adjustment.

Worked Models

Worked Example: Continuous Outcome With a Treatment Interaction

Suppose a hypothetical study compares a trial treatment with external controls on a continuous symptom score, measured in points, where lower scores are better. A baseline severity indicator \(X\) is 0 for lower severity and 1 for higher severity. The four observed group means are: external controls with \(X=0\), 10 points; external controls with \(X=1\), 14 points; treated trial participants with \(X=0\), 7 points; and treated trial participants with \(X=1\), 12 points. Consider the saturated model \(E(Y\mid A,X)=\beta_0+\beta_A A+\beta_X X+\beta_{AX}AX\).

With \(A=0,X=0\), the fitted mean is \(\beta_0=10\), so \(\beta_0=10\). With \(A=0,X=1\), it is \(\beta_0+\beta_X=14\), giving \(\beta_X=14-10=4\) points. With \(A=1,X=0\), it is \(\beta_0+\beta_A=7\), giving \(\beta_A=7-10=-3\) points. Finally, for \(A=1,X=1\), the fitted mean is \(\beta_0+\beta_A+\beta_X+\beta_{AX}=12\). Thus \(\beta_{AX}=12-10-(-3)-4=1\) point.

The model’s treatment-minus-control mean difference for lower-severity participants is \(\beta_A=-3\) points. For higher-severity participants it is \(\beta_A+\beta_{AX}=-3+1=-2\) points. In this hypothetical example, the fitted mean score is lower in the treated group in both strata, but the estimated difference is 1 point less favorable in the higher-severity stratum. These are conditional model comparisons; interpreting them causally requires the external-control assumptions stated above.

Worked Example: Binary Outcome With a Logistic Interaction

Suppose the outcome is whether a hypothetical patient experiences a clinical event by 12 weeks. Let \(X=0\) and \(X=1\) denote lower and higher baseline risk. A fitted logistic model is

$$ \operatorname{logit}\{P(Y=1\mid A,X)\}=-2-1.0A+1.2X+0.8AX. $$

For lower-risk controls, the log odds are \(-2\), so the event risk is \(1/(1+e^2)=0.1192\), or 11.92%. For lower-risk treated participants, the log odds are \(-2-1=-3\), giving risk \(1/(1+e^3)=0.04743\), or 4.743%. The fitted risk difference in this stratum is \(0.04743-0.1192=-0.0718\), about 7.18 percentage points lower with treatment.

For higher-risk controls, the log odds are \(-2+1.2=-0.8\), giving risk \(1/(1+e^{0.8})=0.3100\), or 31.00%. For higher-risk treated participants, the log odds are \(-2-1+1.2+0.8=-1\), giving risk \(1/(1+e)=0.2689\), or 26.89%. The fitted risk difference is \(0.2689-0.3100=-0.0411\), about 4.11 percentage points lower. The conditional odds ratio is \(e^{-1}=0.3679\) for \(X=0\), and \(e^{-1+0.8}=e^{-0.2}=0.8187\) for \(X=1\). The interaction changes the log odds ratio; the computed risks show why odds-ratio interaction and risk-difference interaction are not interchangeable.

Worked Example: Count Outcome With an Exposure-Time Offset

Suppose a hypothetical analysis models recurrent event counts with a Poisson log-rate model. Participants have different observed person-time, so the model includes the logarithm of person-time as an offset. Let \(X=1\) mark a higher-risk baseline group, and suppose the fitted rate model is

$$ \log\{E(Y\mid A,X)\}=\log(T)+\log(8)-0.4A+0.5X+0.2AX, $$

where \(T\) is follow-up time in person-years. For lower-risk controls, the rate is \(e^{\log(8)}=8.00\) events per person-year. For lower-risk treated participants, it is \(8e^{-0.4}=5.363\) events per person-year, with rate ratio \(e^{-0.4}=0.6703\). For higher-risk controls, the rate is \(8e^{0.5}=13.19\) events per person-year. For higher-risk treated participants, it is \(8e^{0.5-0.4+0.2}=8e^{0.3}=10.80\) events per person-year, with rate ratio \(e^{-0.4+0.2}=0.8187\).

The interaction therefore allows the fitted treatment rate ratio to differ by baseline-risk group. The offset accounts for differing time at risk under the specified rate model; it does not correct confounding or make follow-up definitions comparable by itself.

Why the Interaction Changes the Contrast

The treatment contrast follows directly by evaluating the model twice at the same covariate value and subtracting on the link scale. In the general model, the linear predictor at treatment \(A=1\) is \(\beta_0+\beta_A+\beta_X^\mathsf{T}x+\gamma^\mathsf{T}x\), while at \(A=0\) it is \(\beta_0+\beta_X^\mathsf{T}x\). Subtracting gives

$$ \eta(1,x)-\eta(0,x)=\beta_A+\gamma^\mathsf{T}x. $$

For an identity link, this difference is a mean difference. For a logit link, it is a log odds ratio, and exponentiating gives the conditional odds ratio. For a log link, exponentiating gives a conditional rate ratio when the modeled mean is a rate. This derivation explains why an interaction must be interpreted on the model’s link scale first. To report an absolute risk difference from a logistic model, calculate the two predicted risks and subtract them, as in the binary example.

Fitting, Comparisons, and Diagnostics

A practical model-building sequence is to define the outcome and baseline covariates first, choose a likelihood and link appropriate to the outcome, and then specify main effects and clinically justified interactions before examining fitted contrasts. Avoid selecting interactions solely because they produce a favorable result. Continuous covariates may need nonlinear terms; a single linear term assumes a particular shape on the model scale. If a treatment effect is expected to vary across a covariate, include the corresponding treatment-by-covariate term and ensure that the relevant covariate patterns are represented in both groups.

Outcome regression differs from matching and weighting in what it models. Regression specifies the outcome conditional on treatment and covariates, then uses that model for adjusted comparisons. Matching and weighting instead construct a comparison by pairing or reweighting participants based on treatment assignment and measured covariates. Each approach can fail if its assumptions or implementation are poor. A regression model may extrapolate when groups have little covariate overlap; weighting can be unstable when estimated weights are extreme; matching can discard participants or leave residual imbalance. Combining approaches is possible, but it does not remove the need to state the target population and assumptions.

Check whether the fitted model is plausible for the observed outcome and covariate patterns. For continuous outcomes, inspect residual patterns and the adequacy of the mean structure. For binary and count outcomes, compare fitted predictions with observed outcome frequencies or rates across meaningful covariate groups, and check for sparse data or separation. Examine whether interaction estimates are supported by enough observations in each treatment-by-covariate pattern. A large coefficient or a precise-looking model output cannot compensate for a comparison based on unsupported extrapolation.

A common mistake is to fit only treatment and covariate main effects, then interpret the treatment coefficient as an effect that must be constant for every patient. That interpretation is true only on the model’s link scale under the no-interaction specification. If the outcome relationship plausibly varies by baseline risk, omitting an interaction imposes a common contrast and may distort subgroup predictions. Conversely, adding many interactions to sparse data can make estimates unstable. Use a limited, clinically motivated specification and report the scale on which each contrast is interpreted.

The main limitation remains substantive: adjustment only addresses differences represented adequately by measured covariates and the model. It cannot establish that external controls are exchangeable with trial participants, repair incompatible outcome measurement, or resolve a treatment-source aliasing problem. Regression is a transparent adjustment strategy, not a substitute for design scrutiny.

Key takeaway: Specify the outcome distribution and link, include covariates that address measured differences, and use treatment-by-covariate terms when a common conditional contrast is not credible. Interpret every coefficient on its model scale, then calculate outcome-scale contrasts when those are the quantities of interest.

Check Your Understanding

Answer each question, then compare with the brief solutions.

  1. In a linear model with treatment \(A\), a binary baseline covariate \(X\), and an \(A\times X\) term, what is the treatment-minus-control mean difference for \(X=1\)?
  2. In a logistic model, does a treatment-by-covariate interaction directly give the difference in risk differences between covariate groups?
  3. What assumption is needed to interpret an adjusted comparison of trial-treated participants with external controls as a causal treatment contrast?
  4. Why can a model not separately estimate treatment and source effects when all treated participants are from the trial and all controls are external?

Solutions. (1) It is \(\beta_A+\beta_{AX}\), where \(\beta_{AX}\) is the coefficient of \(A\times X\). (2) No. It describes variation in the conditional log odds ratio; calculate predicted risks and subtract to obtain risk differences. (3) Conditional on the measured baseline covariates, the groups must be comparable with respect to potential outcomes, alongside consistency, adequate overlap, and a suitable outcome model. (4) The indicators are perfectly aligned, so the data contain no variation that distinguishes a source difference from a treatment difference; separating them requires additional information or assumptions.

Clinical Biostats