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

被引:33
|
作者
Smith, Matthew J. [1 ]
Mansournia, Mohammad A. [2 ]
Maringe, Camille [1 ]
Zivich, Paul N. [3 ,4 ]
Cole, Stephen R. [3 ]
Leyrat, Clemence [1 ]
Belot, Aurelien [1 ]
Rachet, Bernard [1 ]
Luque-Fernandez, Miguel A. [1 ,5 ,6 ]
机构
[1] London Sch Hyg & Trop Med, Dept Noncommunicable Dis Epidemiol, Inequal Canc Outcomes Network, Keppel St, London WC1E 7HT, England
[2] Univ Tehran Med Sci, Dept Epidemiol & Biostat, Tehran, Iran
[3] Univ N Carolina, Dept Epidemiol, Chapel Hill, NC 27515 USA
[4] Univ N Carolina, Carolina Populat Ctr, Chapel Hill, NC 27515 USA
[5] Univ Granada, Andalusian Sch Publ Hlth, Inst Invest Biosanitaria Granada Ibs GRANADA, Noncommunicable Dis & Canc Epidemiol Grp, Granada, Spain
[6] Biomed Network Res Ctr Epidemiol & Publ Hlth CIBE, Madrid, Spain
关键词
causal inference; double-robust methods; g-formula; G-methods; inverse probability weighting; machine learning; propensity score; regression adjustment; targeted maximum likelihood estimation; MARGINAL STRUCTURAL MODELS; PROPENSITY SCORE; MORTALITY;
D O I
10.1002/sim.9234
中图分类号
Q [生物科学];
学科分类号
07 ; 0710 ; 09 ;
摘要
The 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 .
引用
收藏
页码:407 / 432
页数:26
相关论文
共 50 条
  • [31] Benefits and Introduction to Python']Python Programming for Freshmore Students Using Inexpensive Robots
    Huei, Yoong Cheah
    2014 INTERNATIONAL CONFERENCE ON TEACHING, ASSESSMENT AND LEARNING (TALE), 2014, : 12 - 17
  • [33] Workflow for Data Analysis in Experimental and Computational Systems Biology: Using Python']Python as 'Glue'
    Badenhorst, Melinda
    Barry, Christopher J.
    Swanepoel, Christiaan J.
    van Staden, Charles Theo
    Wissing, Julian
    Rohwer, Johann M.
    PROCESSES, 2019, 7 (07) : 1 - 17
  • [34] Modeling the impact of Python']Python and R packages using dependency and contributor networks
    Korkmaz, Gizem
    Kelling, Claire
    Robbins, Carol
    Keller, Sallie
    SOCIAL NETWORK ANALYSIS AND MINING, 2019, 10 (01)
  • [35] Meta-analysis using Python: a hands-on tutorial
    Safoora Masoumi
    Saeid Shahraz
    BMC Medical Research Methodology, 22
  • [36] New Method of Cryptography With Python']Python Code Using Elzaki Transform and Linear Combination of Function
    Raut, P. P.
    Hiwarekar, A. P.
    COMMUNICATIONS IN MATHEMATICS AND APPLICATIONS, 2023, 14 (03): : 1245 - 1254
  • [37] Identification of Novel Microcystins Using High-Resolution MS and MSn with Python']Python Code
    Baliu-Rodriguez, David
    Peraino, Nicholas J.
    Premathilaka, Sanduni H.
    Birbeck, Johnna A.
    Baliu-Rodriguez, Tomas
    Westrick, Judy A.
    Isailovic, Dragan
    ENVIRONMENTAL SCIENCE & TECHNOLOGY, 2022, 56 (03) : 1652 - 1663
  • [38] A tutorial on solving ordinary differential equations using Python']Python and hybrid physics-informed neural network
    Nascimento, Renato G.
    Fricke, Kajetan
    Viana, Felipe A. C.
    ENGINEERING APPLICATIONS OF ARTIFICIAL INTELLIGENCE, 2020, 96
  • [39] CHICOM: Code for comparing weighted or unweighted histograms in Fortran-77, C++, R and Python']Python
    Gagunashvili, Nikolay D.
    Halldorsson, Helgi
    Neukirchen, Helmut
    COMPUTER PHYSICS COMMUNICATIONS, 2019, 245
  • [40] Causal Analysis and quantitative methods: An introduction with R, Stata and SPSS
    Leblanc, Leandre
    CANADIAN JOURNAL OF POLITICAL SCIENCE-REVUE CANADIENNE DE SCIENCE POLITIQUE, 2021, 54 (04): : 985 - 987