Gformula: Estimating Causal Effects in the Presence of Time-Varying Confounding or Mediation using the G-Computation Formula
Open accessThe DOI matches its Crossref record; 14 of the 14 references it cites were found in a registry or an index.
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 effect of the exposures on an outcome is mediated by intermediate variables, and in particular when confounders of the mediator–outcome relationships are themselves 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.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Causality: Models, Reasoning, and Inference
Pearl, J. (2009) · doi:10.1017/cbo9780511803161 · Cited by 11,653
Mostly Harmless Econometrics: An Empiricist's Companion
Angrist, J. D., & Pischke, J.-S. (2009) · doi:10.1515/9781400829828 · Cited by 9,467
Statistical Analysis with Missing Data
Little, R. J. A., & Rubin, D. B. (2002) · Wiley Series in Probability and Statistics · doi:10.1002/9781119013563 · Cited by 8,473
Marginal Structural Models and Causal Inference in Epidemiology
Robins, J. M., Hernán, M. Á., & Brumback, B. (2000) · Epidemiology · doi:10.1097/00001648-200009000-00011 · Cited by 5,581 · cited 1×
“This can be done using a Marginal Structural Model (Robins et al., 2000).”
Mostly Harmless Econometrics: An Empiricist's Companion
Angrist, J. D., & Pischke, J.-S. (2008) · doi:10.2307/j.ctvcm4j72 · Cited by 5,051
Causal Diagrams for Epidemiologic Research
Greenland, S., Pearl, J., & Robins, J. M. (1999) · Epidemiology · doi:10.1097/00001648-199901000-00008 · Cited by 3,728
A structural approach to selection bias
Hernán, M. A., Hernández-Díaz, S., & Robins, J. M. (2004) · Epidemiology · doi:10.1097/01.ede.0000135174.63482.43 · Cited by 2,844 · cited 1×
“This is called “collider-stratification bias” (Hernán, Hernández-Dı́az, and Robins 2004) and applies similarly to figure 2.”
Robins, J. (1986) · Mathematical Modelling · doi:10.1016/0270-0255(86)90088-6 · Cited by 2,451 · cited 3×
“In particular, when the time-varying confounder is itself affected by the time-varying explanatory variable of interest, standard methods (that is, regression adjustment) for dealing with confounding can no longer be applied (Robins 1986; Robins and Hernán 2009; Daniel et al. 2011).”
Identifiability and exchangeability for direct and indirect effects
Robins, J. M., & Greenland, S. (1992) · Epidemiology · doi:10.1097/00001648-199203000-00013 · Cited by 1,793
Counterfactuals and Causal Inference: Methods and Principles for Social Research
Morgan, S. L., & Winship, C. (2007) · doi:10.1017/cbo9780511804564 · Cited by 1,146
D'Agostino, R. B., Lee, M., Belanger, A. J., Cupples, L. A., Anderson, K., & Kannel, W. B. (1990) · Statistics in Medicine · doi:10.1002/sim.4780091214 · Cited by 798 · cited 2×
“…outcome, if the parameters of the model for {Y1, Y2, . . . , YT+1} are estimated from a pooled logistic regression over all time points, then the natural choice of MSM is a marginal structural Cox model (D’Agostino et al. 1990), and gformula supports the fitting of such an MSM using stcox.”
Causal Inference from Complex Longitudinal Data
Robins, J. M. (1997) · Lecture Notes in Statistics · doi:10.1007/978-1-4612-1842-5_4 · Cited by 510 · cited 1×
“One such method is the g-computation procedure, first suggested by Robins (1986, 1987a,b, 1989b) and further discussed by Robins (1989a, 1997), Robins, Greenland, and Hu (1999), Gill and Robins (2001), Robins and Hernán (2009), Taubman et al. (2009), and Daniel et al. (2011).”
Estimation of Direct Causal Effects
Petersen, M. L., Sinisi, S. E., & van der Laan, M. J. (2006) · Epidemiology · doi:10.1097/01.ede.0000208475.99429.2d · Cited by 362
“Proportion explained”: a causal interpretation for standard measures of indirect effect?
Hafeman, D. M. (2009) · American Journal of Epidemiology · doi:10.1093/aje/kwp283 · Cited by 98 · cited 8×
“Much has been written about the nature of this additional assumption, and different authors have chosen different assumptions (Hafeman and VanderWeele 2011). Briefly, the additional assumption either requires that there be no intermediate confounding (that is, that the mediator–outcome confounders are not affected by…”
Influential
Cited by
Mediation Analysis: A Practitioner's Guide
VanderWeele, T. J. (2016) · Annual Review of Public Health · doi:10.1146/annurev-publhealth-032315-021402 · Cited by 1,985
A Quantile-Based g-Computation Approach to Addressing the Effects of Exposure Mixtures
Keil, A. P., Buckley, J. P., O’Brien, K. M., Ferguson, K. K., Zhao, S., & White, A. J. (2020) · Environmental Health Perspectives · doi:10.1289/ehp5838 · Cited by 1,714
Victora, C. G., Horta, B. L., de Mola, C. L., Quevedo, L., Pinheiro, R. T., Gigante, D. P., Gonçalves, H., & Barros, F. C. (2015) · The Lancet Global Health · doi:10.1016/s2214-109x(15)70002-1 · Cited by 785
Mediation analysis in epidemiology: methods, interpretation and bias
Richiardi, L., Bellocco, R., & Zugna, D. (2013) · International Journal of Epidemiology · doi:10.1093/ije/dyt127 · Cited by 781
Methods for dealing with time‐dependent confounding
Daniel, R. M., Cousens, S. N., De Stavola, B. L., Kenward, M. G., & Sterne, J. A. C. (2013) · Statistics in Medicine · doi:10.1002/sim.5686 · Cited by 376
Self-citation
Metadata
- Authors
- Daniel, R. M., De Stavola, B. L., & Cousens, S. N.
- Venue
- The Stata Journal: Promoting communications on statistics and Stata
- Publisher
- SAGE Publications
- Published
- 2011-12
- Volume
- 11
- Issue
- 4
- Pages
- 479-517
- ISSN
- 1536-867X (ISSN-L)
- 1536-8734
- OpenAlex
- W2159691010
- Cited by
- 174
- References
- 14
- FWCI
- 5.29
- Type
- journal article
- Language
- en
- Open access
- green
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.