Tutorial: Introduction to computational causal inference using reproducible Stata, R and Python code
Matthew J. Smith, Camille Maringe, Bernard Rachet, Mohammad A., Mansournia, Paul N. Zivich, Stephen R. Cole, Miguel Angel Luque-Fernandez

TL;DR
This tutorial introduces computational methods for causal inference in observational health studies, providing reproducible code in Stata, R, and Python to help researchers estimate causal effects despite confounding challenges.
Contribution
It offers a comprehensive, accessible tutorial with reproducible code demonstrating various causal inference estimators from a historical perspective.
Findings
Illustrates use of different causal inference methods in health care data
Provides commented code in Stata, R, and Python for practical application
Highlights the evolution of estimators to address confounding
Abstract
The purpose of many health studies is to estimate the effect of an exposure on an outcome. It is not always ethical to assign an exposure to individuals in randomised controlled trials, instead observational data and appropriate study design must be used. There are major challenges with observational studies, one of which is confounding that can lead to biased estimates of the causal effects. Controlling for confounding is commonly performed by simple adjustment for measured confounders; although, often this is not enough. Recent advances in the field of causal inference have dealt with confounding by building on classical standardisation 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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdvanced Causal Inference Techniques · Health Systems, Economic Evaluations, Quality of Life · Statistical Methods and Inference
