gformula: Estimating causal effects in the presence of time-varying confounding or mediation using the g-computation formula
Rhian M. Daniel (),
Bianca L. De Stavola and
Simon N. Cousens
Additional contact information
Rhian M. Daniel: London School of Hygiene and Tropical Medicine
Bianca L. De Stavola: London School of Hygiene and Tropical Medicine
Simon N. Cousens: London School of Hygiene and Tropical Medicine
Stata Journal, 2011, vol. 11, issue 4, 479-517
Abstract:
This article describes a new command, gformula, that is an implementation of the g-computation procedure. It is used to estimate the causal effect of time-varying exposures on an outcome in the presence of time-varying confounders that are themselves also affected by the exposures. The procedure also addresses the related problem of estimating direct and indirect effects when the causal ef- fect of the exposures on an outcome is mediated by intermediate variables, and in particular when confounders of the mediator–outcome relationships are them- selves affected by the exposures. A brief overview of the theory and a description of the command and its options are given, and illustrations using two simulated examples are provided. Copyright 2011 by StataCorp LP.
Keywords: gformula; causal inference; g-computation formula; time-varying confounding; mediation; direct and indirect effects (search for similar items in EconPapers)
Date: 2011
Note: to access software from within Stata, net describe http://www.stata-journal.com/software/sj11-4/st0238/
References: View references in EconPapers View complete reference list from CitEc
Citations: View citations in EconPapers (13)
Downloads: (external link)
http://www.stata-journal.com/article.html?article=st0238
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:tsj:stataj:v:11:y:2011:i:4:p:479-517
Ordering information: This journal article can be ordered from
http://www.stata-journal.com/subscription.html
Access Statistics for this article
Stata Journal is currently edited by Nicholas J. Cox and Stephen P. Jenkins
More articles in Stata Journal from StataCorp LLC
Bibliographic data for series maintained by Christopher F. Baum () and Lisa Gilmore ().