Introduction to computational causal inference using reproducible Stata, R, and Python code: A tutorial.

dc.contributor.authorSmith, Matthew J
dc.contributor.authorMansournia, Mohammad A
dc.contributor.authorMaringe, Camille
dc.contributor.authorZivich, Paul N
dc.contributor.authorCole, Stephen R
dc.contributor.authorLeyrat, Clémence
dc.contributor.authorBelot, Aurélien
dc.contributor.authorRachet, Bernard
dc.contributor.authorLuque-Fernandez, Miguel A
dc.date.accessioned2025-01-07T12:28:40Z
dc.date.available2025-01-07T12:28:40Z
dc.date.issued2021-10-28
dc.description.abstractThe main purpose of many medical studies is to estimate the effects of a treatment or exposure on an outcome. However, it is not always possible to randomize the study participants to a particular treatment, therefore observational study designs may be used. There are major challenges with observational studies; one of which is confounding. Controlling for confounding is commonly performed by direct adjustment of measured confounders; although, sometimes this approach is suboptimal due to modeling assumptions and misspecification. Recent advances in the field of causal inference have dealt with confounding by building on classical standardization methods. However, these recent advances have progressed quickly with a relative paucity of computational-oriented applied tutorials contributing to some confusion in the use of these methods among applied researchers. In this tutorial, we show the computational implementation of different causal inference estimators from a historical perspective where new estimators were developed to overcome the limitations of the previous estimators (ie, nonparametric and parametric g-formula, inverse probability weighting, double-robust, and data-adaptive estimators). We illustrate the implementation of different methods using an empirical example from the Connors study based on intensive care medicine, and most importantly, we provide reproducible and commented code in Stata, R, and Python for researchers to adapt in their own observational study. The code can be accessed at https://github.com/migariane/Tutorial_Computational_Causal_Inference_Estimators.
dc.identifier.doi10.1002/sim.9234
dc.identifier.essn1097-0258
dc.identifier.pmid34713468
dc.identifier.unpaywallURLhttps://onlinelibrary.wiley.com/doi/pdfdirect/10.1002/sim.9234
dc.identifier.urihttps://hdl.handle.net/10668/24648
dc.issue.number2
dc.journal.titleStatistics in medicine
dc.journal.titleabbreviationStat Med
dc.language.isoen
dc.organizationEscuela Andaluza de Salud Pública
dc.organizationInstituto de Investigación Biosanitaria de Granada (ibs.GRANADA)
dc.page.number407-432
dc.pubmedtypeJournal Article
dc.pubmedtypeObservational Study
dc.pubmedtypeResearch Support, Non-U.S. Gov't
dc.rightsAttribution 4.0 International
dc.rights.accessRightsopen access
dc.rights.urihttp://creativecommons.org/licenses/by/4.0/
dc.subjectG-methods
dc.subjectcausal inference
dc.subjectdouble-robust methods
dc.subjectg-formula
dc.subjectinverse probability weighting
dc.subjectmachine learning
dc.subjectpropensity score
dc.subjectregression adjustment
dc.subjecttargeted maximum likelihood estimation
dc.subject.meshCausality
dc.subject.meshComputer Simulation
dc.subject.meshHumans
dc.subject.meshModels, Statistical
dc.subject.meshProbability
dc.subject.meshPropensity Score
dc.subject.meshResearch Design
dc.titleIntroduction to computational causal inference using reproducible Stata, R, and Python code: A tutorial.
dc.typeresearch article
dc.type.hasVersionVoR
dc.volume.number41

Files