AIPW: An R Package for Augmented Inverse Probability-Weighted Estimation of Average Causal Effects

Am J Epidemiol. 2021 Dec 1;190(12):2690-2699. doi: 10.1093/aje/kwab207.

Abstract

An increasing number of recent studies have suggested that doubly robust estimators with cross-fitting should be used when estimating causal effects with machine learning methods. However, not all existing programs that implement doubly robust estimators support machine learning methods and cross-fitting, or provide estimates on multiplicative scales. To address these needs, we developed AIPW, a software package implementing augmented inverse probability weighting (AIPW) estimation of average causal effects in R (R Foundation for Statistical Computing, Vienna, Austria). Key features of the AIPW package include cross-fitting and flexible covariate adjustment for observational studies and randomized controlled trials (RCTs). In this paper, we use a simulated RCT to illustrate implementation of the AIPW estimator. We also perform a simulation study to evaluate the performance of the AIPW package compared with other doubly robust implementations, including CausalGAM, npcausal, tmle, and tmle3. Our simulation showed that the AIPW package yields performance comparable to that of other programs. Furthermore, we also found that cross-fitting substantively decreases the bias and improves the confidence interval coverage for doubly robust estimators fitted with machine learning algorithms. Our findings suggest that the AIPW package can be a useful tool for estimating average causal effects with machine learning methods in RCTs and observational studies.

Keywords: average causal effects; causal inference; doubly robust estimation; epidemiologic methods; machine learning; nonparametric statistics.

Publication types

  • Research Support, N.I.H., Extramural

MeSH terms

  • Bias
  • Causality*
  • Computer Simulation
  • Data Interpretation, Statistical*
  • Humans
  • Machine Learning*
  • Observational Studies as Topic
  • Randomized Controlled Trials as Topic
  • Software Design*