Skip to main content
Chest logoLink to Chest
editorial
. 2025 Oct 8;168(4):856–859. doi: 10.1016/j.chest.2025.05.028

Estimating Heterogeneous Treatment Effects With Target Trial Emulation

A Checklist of Causal Machine Learning for Observational Data

Xiaofeng Wang 1,∗, Yan Zou 1, Yifan Wang 1, Chao Zhang 1
PMCID: PMC12597446  PMID: 41073037

Target trial emulation (TTE) is a novel statistical framework that applies the design principles of randomized clinical trials (RCTs) to observational data, which enables researchers to estimate causal effects more rigorously. By explicitly specifying the components of a hypothetical target trial, TTE structures observational data analyses to mimic the conditions of an RCT, reducing biases that are inherent in nonrandomized studies. This approach is particularly useful when RCTs are impractical or unethical by offering robust real-world evidence for clinical decision-making. Regulatory agencies, such as the US Food and Drug Administration, have recognized the potential of well-designed observational studies to guide decisions through programs like the Real-World Evidence Program.

A hypothetical target trial is the randomized trial researchers would conduct ideally but cannot because of practical or ethical constraints. TTE emulates this trial using observational data to approximate its potential results. A TTE study begins by defining the hypothetical target trial, including 7 key components: eligibility criteria, treatment strategies being compared, assignment procedures, follow-up period, outcome of interest, causal contrast(s), and analysis plan.1 Investigators then apply this protocol to real-world data, such as electronic health records, disease registries, administrative claims databases, or cohort studies. This involves carefully selecting data that meet the eligibility criteria, accurately defining treatment initiation and follow-up periods, and applying appropriate statistical methods to adjust for confounding factors. Clearly specifying the hypothetical target trial and how it is emulated with the use of observational data offers several benefits. It helps researchers not only to avoid common biases in observational studies, such as immortal time bias and confounding by indication, but also to enhance transparency. This transparency enables readers and reviewers to assess the credibility of the emulation and determine whether the observational study closely approximates the target trial.

RCTs primarily estimate the average treatment effect, a key metric for regulatory approval and clinical guidelines about expected benefits in the target population. However, individual patients may respond differently to treatments, leading to heterogeneous treatment effects (HTEs). An understanding of HTEs is crucial for personalized medicine, because it allows clinicians to tailor treatments to those patients most likely to benefit. Assessment of HTE involves estimating the conditional average treatment effect (CATE), which represents the expected effect of a treatment for individuals with specific characteristics or conditions. It helps identify and prioritize individuals who are likely to derive the greatest benefit from an intervention, provided the estimated effects are valid.

Estimating HTE within the TTE framework is both feasible and valuable because it leverages observational data’s larger sample sizes compared with RCTs. Although RCTs often are limited in size and may not be powered to detect HTEs, observational studies can provide the statistical power needed to estimate these effects more precisely, assuming that the necessary causal assumptions are met and that measurement error is controlled. By emulating RCTs with proper statistical methods, researchers can derive accurate CATE estimates, blending observational data strengths with causal inference rigor. Moreover, there is considerable potential in the use of the TTE framework to combine randomized and nonrandomized studies, if data and estimand harmonization are managed carefully. This approach balances the strengths of both study types and benefits from the large sample sizes, where machine learning (ML) methods often outperform traditional parametric approaches.

In recent years, causal-ML methods have advanced the estimation of CATE significantly. A range of ML techniques has been developed, many of which are implemented in open-source software packages for languages like R and Python. Although algorithms like causal forests,2 meta-learners (S-, T- and X-learners),3 targeted maximum likelihood estimation, 4 and double ML may look quite different at the code level, they all essentially build flexible models for 2 key components, the propensity score and the outcome models, and then combine them through a “1-step” or “augmented” estimator. What distinguishes 1 method from another is not a different causal estimand, but rather how they relax smoothness or sparsity assumptions in those nuisance models and how efficiently they leverage particular data features. Some approaches add further refinements to enhance performance under specific data-generating scenarios, but all share the same inferential core.

Because these methods rely on flexible ML models to estimate complex relationships, they require careful implementation to ensure valid results. Cross-validation helps select well-fitting models without overfitting. Furthermore, many of these methods use cross-fitting, which is a form of sample-splitting in which 1 subset of the data fits the nuisance models and a separate subset estimates the CATE. By isolating nuisance and target estimation in distinct samples, cross-fitting prevents biases in the final CATE estimates that can arise when the same observations serve both roles, especially with highly adaptive learners.

Precision in estimation of heterogeneous effect is a commonly used metric for evaluating model performance in causal inference with HTE. However, in practice, precision in estimation of heterogeneous effect can be computed only in simulations where the true CATE is known. In real-world observational studies, where the true CATE is generally unobservable, direct evaluation is impossible. Instead, alternative metrics such as uplift curves, Qini curves, and their corresponding summary measures, like the areas under these curves or Qini coefficients, can be used to assess how well a model ranks individuals based on their predicted treatment effects.5 These metrics effectively capture a model’s ability to differentiate individuals with varying treatment responses. However, Qini curves specifically focus on ranking performance rather than the accuracy of absolute CATE estimates. If the estimated CATEs are biased systematically, a model could achieve a high Qini coefficient while still providing incorrect treatment effect estimates. Furthermore, Qini curves rely on the assumption of monotonicity in treatment effects (that is, larger estimated CATE values correspond to greater actual treatment benefits). This assumption may not always hold in causal inference. Therefore, although Qini curves are valuable for ranking-based evaluations, they should not be used in isolation. Complementary validation methods, such as calibration plots, which assess the agreement between estimated treatment effects and observed outcomes, are essential for the identification of systematic biases and should be reported. Additionally, incorporating uncertainty quantification (such as CIs and/or prediction intervals) helps ensure the robustness of CATE estimates. By leveraging a combination of these validation techniques, researchers can assess model performance more effectively and ensure the accurate and reliable estimation of CATEs. However, it is important to note that performance evaluation for HTEs is a rapidly evolving field, and best practices may shift as new methods continue to develop.

Table 1 offers a step-by-step checklist to guide investigators in conducting studies aimed at estimating HTEs within the TTE framework. Key steps include defining the hypothetical target trial, emulating it with observational data, identifying confounders, selecting appropriate causal ML methods, and validating the models with the use of techniques like cross-validation and cross-fitting. With smaller data sets, additional caution is required to mitigate overfitting, although larger data sets can support the use of more flexible models. Following the checklist can strengthen the validity and reliability of causal-ML analyses, advancing personalized treatment strategies.

Table 1.

A Checklist for Conducting a Study of Heterogeneous Treatment Effect Estimation With Target Trial Emulation

Step Description
  • 1.

    Define the hypothetical target trial

Clearly specify the 7 key components: eligibility criteria, treatment strategies, assignment procedures, follow-up period, outcome of interest, causal contrast(s), and analysis plan.
  • 2.

    Emulate the trial using observational data

  • •

    Data collection: Gather observational data from relevant sources such as electronic health records, registries, claims databases, and cohort studies.

  • •

    Operationalize components: Map the target trial components to the observational data (eg, define time zero, treatment initiation, and outcome measurements).

  • •

    Data cleaning: Address missing values, outliers, and inconsistencies through appropriate data preprocessing techniques.

  • 3.

    Identify confounder

  • •

    Use domain knowledge and tools like directed acyclic graphs to identify potential confounders that affect treatment and outcome.

  • •

    Ensure that all relevant confounders are measured and included in the data set.

  • 4.

    Estimate conditional average treatment effect with the use of machine learning

  • •

    Choose method(s) suited to study objectives and data (eg, meta-learners; targeted maximum likelihood estimation, double machine learning, causal forests, deep learning).

  • •

    Model development: Use cross-validation to tune hyperparameters and select models, thereby mitigating overfitting; use cross-fitting to de-correlate nuisance estimation from the conditional average treatment effect estimation when implementing appropriate machine learning methods.

  • •

    Model evaluation: Assess calibration (observed vs predicted effects across conditional average treatment effect quantiles) and report performance metrics (eg, uplift/Qini curves, area under the uplift curve/area under the Qini curve, Qini coefficients).

  • 5.

    Analyze treatment effect heterogeneity

  • •

    Explore variation in treatment effects across different subgroups or covariate patterns.

  • •

    Identify individuals or groups who benefit most or least from the treatment.

  • •

    Validate findings by comparing with traditional methods (eg, propensity score matching, regression adjustment), if applicable.

  • 6.

    Conduct sensitivity analysis

  • •

    Test alternative model specifications (eg, different forms or inclusion of interaction terms).

  • •

    Assess unmeasured confounding with methods like E-values or perform bias analyses to assess the impact of unobserved variables.

  • •

    Evaluate how assumptions about missing data affect the results and the robustness of these results by applying alternative missing data imputation methods.

  • 7.

    Interpret and report findings

  • •

    Provide detailed effect estimates with point estimates and CIs.

  • •

    Include subgroup analyses, if relevant.

  • •

    Summarize sensitivity analyses and discuss limitations (eg, biases, generalizability, and assumptions).

  • •

    Share code used for data preprocessing, modeling, and analysis in a public repository (eg, GitHub, GitLab), and if permissible, share de-identified datasets for transparency and reproducibility.

Estimating HTEs becomes increasingly important in precision medicine, and the proposed checklist guides rigorous, reproducible use of causal-ML tools. However, observational emulations often focus on per-protocol effects, which can introduce time-varying confounding, where treatment and covariates change over time and complicate causal estimation. Although methods like longitudinal targeted maximum likelihood estimation exist to address this, they remain under development and may require careful application. In contrast, intent-to-treat analyses in RCTs target a well-defined point treatment. Researchers who work with complex longitudinal data therefore should proceed with caution; recognize that unmeasured confounding, missing data, and model misspecification remain key challenges; and consider specialized methods or further methods development when estimating HTEs under time-varying confounding.

Funding/Support

X. W. research is supported in part by the National Institutes of Health 1R01GM152717-01.

Financial/Nonfinancial Disclosures

None declared.

Acknowledgments

Role of sponsors: The sponsor had no role in the design of the study, the collection and analysis of the data, or the preparation of the manuscript.

References

  • 1.Hernán M.A., Robins J.M. Using big data to emulate a target trial when a randomized trial is not available. Am J Epidemiol. 2016;183(8):758–764. doi: 10.1093/aje/kwv254. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 2.Wager S., Athey S. Estimation and inference of heterogeneous treatment effects using random forests. J Am Stat Assoc. 2018;113(523):1228–1242. [Google Scholar]
  • 3.Künzel S.R., Sekhon J.S., Bickel P.J., Yu B. (2019). Metalearners for estimating heterogeneous treatment effects using machine learning. Proc Natl Acad Sci USA. 2019;116(10):4156–4165. doi: 10.1073/pnas.1804597116. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4.Van der Laan M.J., Rose S. Springer; 2011. Targeted learning: causal inference for observational and experimental data. [Google Scholar]
  • 5.Gutierrez P., Gérardy J.Y. Causal inference and uplift modelling: a review of the literature. Proc Mach Learn Res. 2017;67:1–13. [Google Scholar]

Articles from Chest are provided here courtesy of American College of Chest Physicians

RESOURCES