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 条
  • [21] Evaluating Python']Python Static Code Analysis Tools Using FAIR Principles
    Hassan, Hassan Bapeer
    Sarhan, Qusay Idrees
    Beszedes, Arpad
    IEEE ACCESS, 2024, 12 : 173647 - 173659
  • [22] Python']Python code smells detection using conventional machine learning models
    Sandouka, Rana
    Aljamaan, Hamoud
    PEERJ COMPUTER SCIENCE, 2023, 9
  • [23] A python']python code for automatic construction of Fischer plots using proxy data
    Yang, Daming
    Huang, Yongjian
    Chen, Zongyang
    Huang, Qinghua
    Ren, Yanguang
    Wang, Chengshan
    SCIENTIFIC REPORTS, 2021, 11 (01)
  • [24] Signature Verification Using Java']Java - Python']Python for Small Computational Devices
    Choudhary, Savita
    Kaul, Siddanth
    Mishra, Shridhar
    Arun, J. B.
    2015 IEEE INTERNATIONAL ADVANCE COMPUTING CONFERENCE (IACC), 2015, : 655 - 659
  • [25] How to Interpret Statistical Models Using marginaleffects for R and Python']Python
    Arel-Bundock, Vincent
    Greifer, Noah
    Heiss, Andrew
    JOURNAL OF STATISTICAL SOFTWARE, 2024, 111 (09): : 1 - 32
  • [26] Data management routines for reproducible research using the G-Node Python']Python Client library
    Sobolev, Andrey
    Stoewer, Adrian
    Pereira, Michael
    Kellner, Christian J.
    Garbers, Christian
    Rautenberg, Philipp L.
    Wachtler, Thomas
    FRONTIERS IN NEUROINFORMATICS, 2014, 8
  • [27] A Brief Introduction of Python']Python to Freshman Engineering Students Using Multimedia Applications
    Wang, Chao
    2020 IEEE FRONTIERS IN EDUCATION CONFERENCE (FIE 2020), 2020,
  • [28] NEW CRYPTOSYSTEM USING LINEAR COMBINATION OF FUNCTION AND SUMUDU TRANSFORM WITH PYTHON']PYTHON CODE
    Raut, P. P.
    Hiwarekar, A. P.
    TWMS JOURNAL OF APPLIED AND ENGINEERING MATHEMATICS, 2025, 15 (01): : 197 - 206
  • [29] Assessing code readability in Python']Python programming courses using eye-tracking
    Segedinac, Milan
    Savic, Goran
    Zeljkovic, Ivana
    Slivka, Jelena
    Konjovic, Zora
    COMPUTER APPLICATIONS IN ENGINEERING EDUCATION, 2024, 32 (01)
  • [30] Using the uniqueness of global identifiers to determine the provenance of Python']Python software source code
    Sun, Yiming
    German, Daniel
    Zacchiroli, Stefano
    EMPIRICAL SOFTWARE ENGINEERING, 2023, 28 (05)