GFORMULA: Stata module to implement the g-computation formula for estimating causal effects in the presence of time-varying confounding or mediation
Rhian Daniel ()
Statistical Software Components from Boston College Department of Economics
Abstract:
gformula is an implementation of the g-computation procedure, used to estimate the causal effect of time-varying exposure(s) (A) on an outcome (Y) in the presence of time-varying confounders (L) that are themselves also affected by the exposure(s). The procedure can also be used to address the related problem of estimating controlled direct effects and natural direct/indirect effects when the causal effect of the exposure(s) on an outcome is mediated by intermediate variables, and in particular when confounders of the mediator-outcome relationships are themselves affected by the exposure(s).
Language: Stata
Requires: Stata version 11
Keywords: g-computation; causal effect; time-varying exposure; time-varying confounders (search for similar items in EconPapers)
Date: 2010-11-23, Revised 2021-09-29
Note: This module should be installed from within Stata by typing "ssc install gformula". The module is made available under terms of the GPL v3 (https://www.gnu.org/licenses/gpl-3.0.txt). Windows users should not attempt to download these files with a web browser.
References: Add references at CitEc
Citations:
Downloads: (external link)
http://fmwww.bc.edu/repec/bocode/g/gformula.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/g/gformula.sthlp help file (text/plain)
http://fmwww.bc.edu/repec/bocode/c/ChkIn.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/d/detangle.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/f/formatline.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/g/gformula_.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/g/gformula_example.do sample program (text/plain)
http://fmwww.bc.edu/repec/bocode/m/mediation.dta sample data file (application/x-stata)
http://fmwww.bc.edu/repec/bocode/t/tvc1.dta sample data file (application/x-stata)
http://fmwww.bc.edu/repec/bocode/t/tvc2.dta sample data file (application/x-stata)
http://fmwww.bc.edu/repec/bocode/g/gformula_Daniel ... bocode/_/cousens.pdf documentation (application/pdf)
Our link check indicates that this URL is bad, the error code is: 404 Not Found
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:boc:bocode:s457204
Ordering information: This software item can be ordered from
http://repec.org/docs/ssc.php
Access Statistics for this software item
More software in Statistical Software Components from Boston College Department of Economics Boston College, 140 Commonwealth Avenue, Chestnut Hill MA 02467 USA. Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().