Tutorials › Bayesian Clinical Trials › Evaluating External-Control Selection Bias

External and Real-World Controls · Tutorial 384 of 696

Evaluating External-Control Selection Bias

Learn to diagnose who enters an external-control dataset, quantify selection, and assess whether weighting can reduce the resulting bias.

Advanced 10 min read

What You'll Learn

  • Distinguish the target population, source population, dataset inclusion, and record availability.
  • Describe selection rates and compare covariate distributions before and after selection.
  • Derive and apply inverse-probability selection weights under explicit assumptions.
  • Combine dataset-inclusion and record-availability probabilities without confusing their roles.
  • Recognize positivity, model, and outcome-dependent-selection problems that weighting cannot fix.
  • Account for selection-model uncertainty when making Bayesian inferences.

Why Selection Into an External-Control Dataset Matters

An external-control analysis may begin with patients who could, in principle, have been eligible as controls, but include only those captured in a nontrial dataset with the records needed for analysis. These are two selection steps: a patient must enter the dataset, and the required information must be available. If either step favors patients with different prognoses, the observed controls may not represent the control population relevant to the trial. Adjustment for treatment-group differences does not, by itself, correct this separate selection problem.

The goal here is to evaluate those selection steps and determine whether weighting can make the observed controls more representative. This is not a guarantee that an external comparison is unbiased. It is an assessment that depends on a defined target population, measured covariates, and explicit assumptions about how selection relates to outcomes.

Definition: Let the target population be the eligible patients whose control outcomes the analysis aims to represent, and let the source population be the patients from whom an external-control dataset could have been assembled. For a source-population patient, let \(S=1\) indicate inclusion in the nontrial dataset and \(R=1\) indicate availability of the required records. The analysis observes a patient only when \(A=SR=1\). The selection probability is \(\pi(X)=P(A=1\mid X)\), where \(X\) contains measured characteristics available for both selected and nonselected patients.

The target population must be stated before selection rates are interpreted. It might be all patients meeting trial eligibility criteria in a specified health system and period, rather than all patients in a registry or all patients treated in routine care. The denominator used to estimate selection probabilities must correspond to that target or to a clearly defined source population that can be related to it. A dataset containing only selected records does not, on its own, reveal how many eligible patients were never captured or lacked required records.

Selection summaries should separate the stages where possible. Report the number eligible for the source frame, the number included in the nontrial dataset, and the number with usable records. Within clinically important covariate groups, calculate both the dataset-inclusion rate and the record-availability rate among those included. Compare the covariate distribution of the target or source population with that of the final analysis sample. A selection rate can differ substantially across groups even when the selected sample looks large.

Selection Summaries and a Worked Diagnostic

For a binary covariate, a simple diagnostic is the difference in its proportion between the source population and the selected analysis sample. For several covariates, standardized differences can put differences on comparable scales. For a binary characteristic, one common standardized difference is

$$ \mathrm{SMD}= \frac{\hat p_{\mathrm{selected}}-\hat p_{\mathrm{source}}} {\sqrt{\{\hat p_{\mathrm{selected}}(1-\hat p_{\mathrm{selected}}) +\hat p_{\mathrm{source}}(1-\hat p_{\mathrm{source}})\}/2}}. $$

The sign indicates the direction of the difference; its magnitude indicates its size relative to the pooled standard deviation. It is a descriptive diagnostic, not a test that establishes selection bias. A covariate difference matters for outcome estimation when that covariate predicts the outcome or is related to other relevant factors.

Worked Example: Finding Differential Dataset Inclusion

Suppose a hypothetical source population contains 1,000 eligible patients: 400 at high baseline risk and 600 at low baseline risk. A nontrial dataset includes 80 high-risk and 300 low-risk patients, and all included patients have the required records. Calculate the inclusion rates and compare the risk-group composition of the selected sample with the source population.

The high-risk inclusion rate is \(80/400=0.20\), or 20%; the low-risk rate is \(300/600=0.50\), or 50%. Overall, \(380/1{,}000=0.38\), or 38%, of the source population is included. The high-risk share is \(400/1{,}000=0.4000\) in the source population but \(80/380=0.2105\) in the selected sample.

Using the displayed proportions, the standardized difference is \(\{0.2105-0.4000\}/\sqrt{\{0.2105(0.7895)+0.4000(0.6000)\}/2}\approx -0.4205\). The selected sample is substantially less high-risk than the source population. This is a warning that unadjusted outcomes could be unrepresentative if baseline risk predicts the outcome; it does not establish the size or direction of outcome bias without outcome information and assumptions.

When Inverse-Probability Selection Weighting Is Justified

If selection is adequately explained by measured baseline covariates, inverse-probability selection weighting can give greater influence to observed patients who resemble people less likely to be selected. For an observed patient with covariates \(X_i\), the basic weight is \(w_i=1/\pi(X_i)\). In practice, \(\pi(X)\) may be known from the sampling design or estimated from a model using information on selected and nonselected people. The model must represent the actual selection process, including required-record availability if the analysis sample requires those records.

The key identification assumption is conditional exchangeability of selection for the control outcome: within levels of the measured covariates \(X\), selected and nonselected patients have the same mean control outcome. In potential-outcome notation, this is \(Y^0\perp A\mid X\), where \(Y^0\) is the outcome under control. Weighting also requires positivity: every covariate pattern in the target population must have a nonzero probability of selection, \(\pi(X)>0\). The outcome and covariates must be defined and measured comparably, and the selection probabilities must be known or estimated adequately. Covariates used for adjustment should be measured before the outcome and should be relevant to selection and outcome representation.

Under these conditions, an inverse-probability-weighted estimate of the target mean control outcome is the weighted mean among observed controls. The justification follows by conditioning on \(X\):

$$ E\left[\frac{A Y^0}{\pi(X)}\middle|X\right] = \frac{E[A Y^0\mid X]}{\pi(X)} = \frac{P(A=1\mid X)E[Y^0\mid A=1,X]}{\pi(X)} = E[Y^0\mid X]. $$

The second equality uses conditional exchangeability, and the last uses \(\pi(X)=P(A=1\mid X)\). Averaging over the source-population covariate distribution yields the source-population mean; it yields the target mean only when the target and source populations have the same covariate distribution. With observed data, the normalized, or Hájek, version below estimates that source-population mean.

$$ \hat\mu^0_{\mathrm{IPW}}= \frac{\sum_{i:A_i=1}Y_i^0/\hat\pi(X_i)} {\sum_{i:A_i=1}1/\hat\pi(X_i)}. $$

If the target and source covariate distributions differ, estimate the conditional control outcome mean among observed controls, \(\hat m_0(x)\), and standardize it over the target covariate distribution:

$$ \hat\mu^0_{\mathrm{target}}=\int \hat m_0(x)\,d\hat F_{\mathrm{target}}(x). $$

This requires the target covariate distribution to be known or estimable; conditional exchangeability identifies the target conditional mean from the observed controls.

With known probabilities, the corresponding unnormalized Horvitz–Thompson total uses \(\sum_{i:A_i=1}Y_i^0/\pi(X_i)\) and estimates the source-population total; dividing by a known source-population size estimates the source mean. This estimates the target mean when the target is the source population (or when their covariate distributions agree); otherwise, use target-standardization or another estimator that accounts for the target distribution. The normalized form above is often convenient when the target size is not known. Its finite-sample behavior and uncertainty still depend on the sampling and probability-estimation procedures.

Worked Example: Weighting for Unequal Selection Rates

Consider a hypothetical source population of 400 eligible control patients: 100 high-risk and 300 low-risk. The external dataset contains 40 high-risk patients, of whom 16 have the outcome, and 60 low-risk patients, of whom 9 have the outcome. Assume selection is independent of the control outcome within each risk group, and that the source-group counts and selection rates are correctly known.

The selection probabilities are \(40/100=0.40\) for high-risk patients and \(60/300=0.20\) for low-risk patients. Thus their inverse-probability weights are \(1/0.40=2.5\) and \(1/0.20=5\), respectively. The observed unweighted outcome proportion is \((16+9)/(40+60)=25/100=0.2500\).

The weighted outcome total is \(16(2.5)+9(5)=40+45=85\). The weighted population total is \(40(2.5)+60(5)=100+300=400\). Therefore the weighted estimate is \(85/400=0.2125\), or 21.25%. The result estimates the source-population control outcome proportion under the stated assumptions; it is not automatically an estimate of a treatment effect.

Accounting for Record Availability

When the analysis requires complete records, model the probability of both steps rather than treating dataset inclusion as the only selection event. By the multiplication rule,

$$ \pi(X)=P(S=1\mid X)P(R=1\mid S=1,X). $$

This expression does not assume that the two stages are independent. The second probability is conditional on having entered the dataset. If the stages are modeled separately, their estimated probabilities must be combined for each patient, and the inverse of that product is the weight for the final analysis sample.

Worked Example: Combining Inclusion and Record Availability

Suppose a hypothetical source population has 200 high-risk and 800 low-risk eligible patients. The probability of dataset inclusion is 0.50 for high-risk patients and 0.25 for low-risk patients. Among included patients, the probability of having the required records is 0.80 and 0.60, respectively. Among those with records, 32 of 80 high-risk patients and 18 of 120 low-risk patients experience the outcome.

The overall selection probabilities are \(0.50(0.80)=0.40\) for high-risk patients and \(0.25(0.60)=0.15\) for low-risk patients. These imply 80 and 120 complete records, respectively, matching the stated analysis sample. The weights are \(1/0.40=2.5\) and \(1/0.15=6.6667\).

The weighted outcome total is \(32(2.5)+18(6.6667)=80+120=200\), to the displayed precision. The weighted population total is \(80(2.5)+120(6.6667)=200+800=1{,}000\). The weighted outcome proportion is therefore approximately \(200/1{,}000=0.2000\). This calculation corrects the two measured selection stages only under the assumption that, within risk group, selection and record availability do not further distinguish patients by their control outcomes.

Diagnostics, Alternatives, and Limitations

After weighting, compare the weighted covariate distribution with the intended target distribution. Large remaining differences indicate that the selection model or weighting procedure has not achieved its covariate-representation goal. Inspect the distribution of estimated selection probabilities and weights: probabilities near zero produce very large weights, making estimates unstable and highly sensitive to a few observations. Also check whether estimated weighted totals reproduce known source-population counts or covariate margins. These checks assess implementation and overlap; they cannot verify that all outcome-relevant selection factors were measured.

Weighting is one option, not a universal remedy. Matching can restrict the analysis to selected controls comparable on measured characteristics, at the cost of changing the represented population or discarding observations. Outcome regression can predict outcomes across covariate patterns, but then relies on a correctly specified outcome model. Doubly robust methods combine weighting and outcome modeling, while still requiring the relevant identification assumptions. These approaches address measured differences in different ways; none repairs unmeasured selection factors or a lack of support in the data.

Truncating extreme weights may reduce variance but changes the estimator and can reintroduce selection bias. Report the choice and examine whether conclusions depend on it. A further limitation arises if selection or record availability depends on the outcome even after conditioning on measured \(X\). Then \(Y^0\perp A\mid X\) fails, so weighting by \(\pi(X)\) alone does not identify the target outcome mean. This possibility requires explicit scrutiny rather than being treated as resolved by a good covariate balance table.

In a Bayesian analysis, estimated selection probabilities are uncertain quantities. Treating fitted weights as fixed can understate uncertainty in the final outcome or treatment-effect posterior. When selection-model uncertainty is material, it should be propagated—for example, by drawing selection-model parameters from their posterior, calculating weights for each draw, and carrying the resulting weighted estimates into the outcome analysis. The final interpretation remains conditional on the selection assumptions; a posterior distribution does not remove bias from an incorrect selection model.

Key takeaway: Define who the external controls should represent, count who enters at each selection stage, and compare measured characteristics with the target. Inverse-probability weighting can address measured selection only when the selection probabilities are estimable, positivity holds, and selection is ignorable conditional on the covariates used.

Check Your Understanding

Answer each question, then compare with the concise solutions below.

  1. A source population has 500 eligible patients, and 150 enter the analysis dataset. What is the overall selection rate and the basic inverse-probability weight if all have the same selection probability?
  2. In a target population, 30% of patients are high-risk. The selected sample is 50% high-risk. What does this difference tell you, and what does it not establish?
  3. Within each measured risk group, patients with the outcome are more likely to have required records than patients without the outcome. Is weighting by baseline risk alone justified?
  4. Why can an analysis with excellent weighted balance on measured covariates still be biased?

Solutions. (1) The selection rate is \(150/500=0.3000\), or 30%; the weight is \(1/0.30=3.333\). (2) The selected dataset overrepresents high-risk patients relative to the target, a potential source of outcome distortion if risk predicts the outcome. The composition difference alone does not determine the amount or direction of outcome bias. (3) No. Outcome-related record availability within risk groups violates conditional exchangeability for selection, so risk-only weights do not generally recover the target outcome distribution. (4) Balance documents similarity only on measured covariates; unmeasured outcome-related selection, model misspecification, and other assumption failures can remain.

Clinical Biostats