Skip to content
DAH

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
Why other work relies on it

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.

  1. 1Observational patient records
  2. 2Sicker patients differ in treatment
  3. 3Adjust for recorded confounders
  4. 4Emulate the ideal trial
  5. 5Bound the effect of hidden ones

Setup. Each patient has potential outcomes Y(1)Y(1) and Y(0)Y(0) under treatment and no treatment. We never see both. The average effect is τ=E[Y(1)−Y(0)]\tau=E[Y(1)-Y(0)]; the conditional effect τ(x)\tau(x) depends on patient features xx.

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 τ\tau 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 e(x)=P(A=1∣X=x)e(x)=P(A=1\mid X=x); 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 Y(1),Y(0)Y(1), Y(0); the individual effect Y(1)−Y(0)Y(1)-Y(0) is never observed, so we target the average effect τ=E[Y(1)−Y(0)]\tau=\mathbb E[Y(1)-Y(0)] or the conditional effect τ(x)=E[Y(1)−Y(0)∣X=x]\tau(x)=\mathbb E[Y(1)-Y(0)\mid X=x] (CATE).

Identification

Under unconfoundedness (Y(a)⊥A∣XY(a)\perp A\mid X), positivity (0<P(A=1∣X)<10<P(A=1\mid X)<1) and consistency, τ\tau is identified by the g-formula E[E[Y∣A=1,X]−E[Y∣A=0,X]]\mathbb E[\mathbb E[Y\mid A=1,X]-\mathbb E[Y\mid A=0,X]]. 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 e(x)=P(A=1∣X=x)e(x)=P(A=1\mid X=x) (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 τ^\hat\tau 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)
Words on this page
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)
New to this? Read first
AI-reviewedAn AI drafted this explanation. Check it against the technical text.

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.

  1. Start with
  2. Then

Open problems & questions

Progress timeline

  1. Jan 1, 2025
    Doubly valid and sharp bounds in JASA
    Related to: Valid and non-conservative treatment-effect intervals from EHR under unmeasured confounding

    Dorn, Guo and Kallus' estimators published in the Journal of the American Statistical Association.

    source
  2. May 26, 2023
    Sharp CATE bounds (NeurIPS)
    Related to: Valid and non-conservative treatment-effect intervals from EHR under unmeasured confounding

    Frauen et al. derive sharp bounds for CATEs and other quantities under a generalised sensitivity model.

    source
  3. Apr 25, 2023
    RCT-DUPLICATE results

    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).

    source
  4. Nov 23, 2021
    Conformal sensitivity analysis for ITEs (preprint)
    Related to: Valid and non-conservative treatment-effect intervals from EHR under unmeasured confounding

    Jin, Ren and Candes give marginally valid intervals for individual treatment effects under the marginal sensitivity model.

    source
  5. Feb 1, 2018
    Double machine learning

    Chernozhukov et al. give conditions for valid inference when nuisance functions are estimated by flexible ML.

    source
  6. Apr 15, 2016
    Target trial emulation

    Hernan and Robins propose specifying and emulating the target randomised trial as a design discipline for observational data.

    source
  7. Dec 1, 2006
    Marginal sensitivity model
    Related to: Valid and non-conservative treatment-effect intervals from EHR under unmeasured confounding

    Tan introduces a bound on the odds-ratio between propensity scores with and without the unmeasured confounder.

    source
  8. Apr 1, 1983
    Propensity score

    Rosenbaum and Rubin show balancing the propensity score removes confounding by measured covariates.

    source
  9. Oct 1, 1974
    Potential-outcomes framework

    Rubin formalises causal effects as comparisons of potential outcomes in randomised and non-randomised studies.

    source