info@wasatchsda.com

Real-world evidence

Target trial emulation: a field guide for real-world evidence teams

Observational studies rarely fail because of the wrong regression model. They fail because of design decisions — who is included, when follow-up starts, how treatment is defined — that quietly introduce bias. Target trial emulation fixes the design first.

Why emulate a trial?

The idea, formalized by Miguel Hernán and James Robins, is disarmingly simple: before analyzing real-world data, write down the protocol of the randomized trial you would ideally run to answer your question — the target trial — and then use observational data to emulate each of its components as closely as possible.

Doing this makes assumptions explicit, exposes avoidable biases such as immortal time and prevalent-user bias, and gives reviewers — regulators included — a familiar structure to evaluate.

Specify the target trial

Every emulation starts with a protocol. For each component, describe the ideal trial and how your data will emulate it:

Component Target trial Emulation with real-world data
Eligibility Adults with condition X and no prior use of A or B Same criteria, applied with diagnosis, procedure and dispensing records in a look-back window
Treatment strategies Initiate A vs. initiate B New users of A vs. new users of B (active comparator)
Assignment Randomized Assumed exchangeable, conditional on measured baseline covariates
Time zero Randomization First dispensing — when eligibility is met and treatment assigned
Outcome Hospitalization for Y Validated claims-based algorithm for Y
Causal contrast Intention-to-treat and per-protocol effects Observational analogues, with weighting for adherence

Align time zero

The most common source of avoidable bias is a mismatch between eligibility, treatment assignment and the start of follow-up. In a trial all three happen at randomization; in real-world data they have to be forced to coincide.

When they don’t, you get immortal time: a period in which, by design, the outcome cannot occur in one group — for example, when patients are classified as “treated” based on a prescription filled months after follow-up began.

Most bias in observational studies is designed in, not analyzed out.

For strategies sustained over time — “start within 90 days of diagnosis”, “continue for 12 months” — the clone–censor–weight approach handles grace periods without introducing immortal time.

Handle confounding

Without randomization, exchangeability has to be earned. Start from a causal diagram agreed with clinicians, then choose methods that fit the question:

  • Propensity scores, used for matching or inverse-probability weighting, to balance measured baseline confounders.
  • Doubly robust estimators, which remain consistent if either the outcome model or the treatment model is correctly specified.
  • New-user, active-comparator designs, which often remove more confounding than any model can.

Report balance diagnostics — standardized mean differences before and after adjustment — not just the final estimate.

Stress-test the result

No adjustment removes unmeasured confounding. The goal is to show how strong it would have to be to change your conclusion:

  • E-values quantify the minimum strength of association an unmeasured confounder would need with both treatment and outcome to explain away the observed effect.
  • Negative control outcomes and exposures reveal residual bias when you find an “effect” where none should exist.
  • Quantitative bias analysis models plausible misclassification and selection mechanisms explicitly.

Further reading

  1. Hernán MA, Robins JM. Using big data to emulate a target trial when a randomized trial is not available. Am J Epidemiol. 2016;183(8):758–764.
  2. VanderWeele TJ, Ding P. Sensitivity analysis in observational research: introducing the E-value. Ann Intern Med. 2017;167(4):268–274.
Treatment vs. emulated comparatorKaplan–Meier
Weighted Kaplan–Meier estimates with 95% confidence bandsIllustrative data

Key takeaways

  • Write the target trial protocol before touching the data.
  • Align eligibility, treatment assignment and time zero — always.
  • Prefer new-user, active-comparator designs where possible.
  • Show balance, then show how robust the answer is to what you couldn’t measure.
Wasatch RWE team

Our real-world evidence group designs and analyzes observational studies for regulatory, payer and clinical audiences. Talk to the team.

Keep reading

All insights

Ready when you are

Planning a study? Let’s make it airtight.

Share your protocol, your dataset or just your question. A senior biostatistician will reply within one business day.