Causal inference for clinical and observational data
Potential-outcomes and graphical frameworks, propensity and doubly robust estimators, target trial emulation and sensitivity analysis for estimating treatment effects from EHR and registry data.
On this page18 sections
Real-world evidence, regulatory use of observational data, treatment-effect heterogeneity and learning clinical policies all require identification assumptions and estimators from this theory.
Statistical methods for working out what a treatment really does from messy real-world patient data.
- 1Observational patient records
- 2Sicker patients differ in treatment
- 3Adjust for recorded confounders
- 4Emulate the ideal trial
- 5Bound the effect of hidden ones
Setup. Each patient has potential outcomes and under treatment and no treatment. We never see both. The average effect is ; the conditional effect depends on patient features .
Identification. If treatment is as good as random given recorded features (no hidden confounding), if every kind of patient could have received either treatment (positivity), and outcomes are consistent, then equals the difference between the outcome averages when we standardise to the same patient mix. Each condition can fail in hospital data.
Estimators. Regression of outcome on treatment and features; inverse-probability weighting by the propensity score ; doubly robust estimators that are right if either of the two models is right; double machine learning, which uses sample splitting so flexible algorithms can model the nuisance parts without spoiling inference; causal forests and meta-learners for effects that vary between patients. For treatments that change over time, Robins' g-methods handle feedback between treatment and health.
Design. Target trial emulation fixes eligibility, the start of follow-up, treatment strategies and outcomes, which removes common biases such as immortal time. In the RCT-DUPLICATE project, emulations of 32 trials agreed in statistical significance in about 72 percent of cases and agreed closely when the trial design was copied well.
Sensitivity analysis. Because no data can prove there is no hidden confounder, we bound the effect assuming confounding up to a stated strength. Recent work gives sharp bounds and conformal prediction ranges, but calibrating the strength remains open.
Skills. Graphs and the backdoor rule, semiparametric efficiency, cross-fitting, overlap diagnostics.
Go deeper
The full technical text.
What it is
Estimating what would happen under a treatment from data in which treatment was not randomly assigned. Each patient has potential outcomes ; the individual effect is never observed, so we target the average effect or the conditional effect (CATE).
Identification
Under unconfoundedness (), positivity () and consistency, is identified by the g-formula . Each assumption can fail in electronic health records: hidden confounders (frailty, indication, unrecorded behaviour), near-deterministic treatment rules, and time-varying confounders affected by past treatment.
Estimators
Outcome regression; inverse-probability weighting with the propensity score (Rosenbaum-Rubin 1983); doubly robust augmented IPW and targeted maximum likelihood; double/debiased machine learning (Chernozhukov et al. 2018), which uses cross-fitting so flexible ML can estimate nuisance functions while stays root-n consistent; meta-learners (S, T, X, R) and causal forests (Wager-Athey 2018) for CATE. For longitudinal treatment, Robins' g-methods (marginal structural models, g-computation, structural nested models).
Design layer
Target trial emulation (Hernán and Robins 2016) writes the hypothetical randomised trial (eligibility, time zero, strategies, outcome, follow-up) and emulates it in the data, avoiding immortal-time and selection biases. The RCT-DUPLICATE initiative emulated 32 trials in claims databases: significance agreement was 72 percent after a 2023 correction, and correlation was high (r about 0.94) when emulation was close.
Sensitivity analysis
Because unconfoundedness is untestable, one bounds the effect under a stated violation: Rosenbaum bounds, the marginal sensitivity model (Tan 2006), E-values, and recent sharp bounds with statistical guarantees (Dorn-Guo-Kallus; Frauen et al.; Jin-Ren-Candès conformal individual-effect intervals).
Techniques to master
Directed acyclic graphs and the backdoor criterion, semiparametric efficiency theory, cross-fitting, overlap diagnostics, conformal prediction, negative controls and benchmarking against trials.
Where it bites
The open problem here is honest, tight, valid uncertainty for individual or subgroup treatment effects from EHR when unmeasured confounding cannot be ruled out.
Words on this page (8)
- causal inference
- Statistical methods that ask what would have happened under a different choice, not just what goes with what.
- confounding
- When a hidden third factor, such as how sick a patient is, affects both who gets a treatment and how they do, faking an effect.
- potential outcomes
- The idea that each patient has an outcome they would have under each possible treatment, though only one is ever seen.
- propensity score
- The probability that a patient with given features receives a treatment; used to compare similar treated and untreated patients.
- electronic health record
- The digital chart a hospital keeps for each patient: diagnoses, lab results, prescriptions and notes.
- randomized controlled trial
- An experiment in which chance decides who gets the treatment, so the groups are comparable apart from the treatment.
- sensitivity analysis
- Asking how strong a hidden factor would have to be to overturn a conclusion.
- conformal prediction
- A way to wrap any predictor so its error ranges come with a guaranteed hit rate, such as covering the truth 90 percent of the time.
New to this? Read first (3)
- Causal inference (Wikipedia)Short map of the main frameworks.
- Causal Inference: What If (Hernan and Robins), free bookThe standard free textbook, readable without much mathematics in early chapters.
- Confounding (Wikipedia)Examples of how hidden factors fake effects.
Understanding map
map of the whole wiki →What to read before Causal inference for clinical and observational data (left), and what builds on it: entries that depend on it and its open problems (right). Every box links to its page.
- Start with
- Then
Open problems & questions
Progress timeline
- Jan 1, 2025Doubly valid and sharp bounds in JASARelated to: Valid and non-conservative treatment-effect intervals from EHR under unmeasured confoundingsource
Dorn, Guo and Kallus' estimators published in the Journal of the American Statistical Association.
- May 26, 2023Sharp CATE bounds (NeurIPS)Related to: Valid and non-conservative treatment-effect intervals from EHR under unmeasured confoundingsource
Frauen et al. derive sharp bounds for CATEs and other quantities under a generalised sensitivity model.
- Apr 25, 2023RCT-DUPLICATE resultssource
32 trials emulated in claims data; agreement depended strongly on how closely the trial design could be emulated (later corrected to 72 percent significance agreement).
- Nov 23, 2021Conformal sensitivity analysis for ITEs (preprint)Related to: Valid and non-conservative treatment-effect intervals from EHR under unmeasured confoundingsource
Jin, Ren and Candes give marginally valid intervals for individual treatment effects under the marginal sensitivity model.
- Feb 1, 2018Double machine learningsource
Chernozhukov et al. give conditions for valid inference when nuisance functions are estimated by flexible ML.
- Apr 15, 2016Target trial emulationsource
Hernan and Robins propose specifying and emulating the target randomised trial as a design discipline for observational data.
- Dec 1, 2006Marginal sensitivity modelRelated to: Valid and non-conservative treatment-effect intervals from EHR under unmeasured confoundingsource
Tan introduces a bound on the odds-ratio between propensity scores with and without the unmeasured confounder.
- Apr 1, 1983Propensity scoresource
Rosenbaum and Rubin show balancing the propensity score removes confounding by measured covariates.
- Oct 1, 1974Potential-outcomes frameworksource
Rubin formalises causal effects as comparisons of potential outcomes in randomised and non-randomised studies.