Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2011 Apr 1;173(7):731-8.
doi: 10.1093/aje/kwq472. Epub 2011 Mar 16.

Implementation of G-computation on a simulated data set: demonstration of a causal inference technique

Affiliations

Implementation of G-computation on a simulated data set: demonstration of a causal inference technique

Jonathan M Snowden et al. Am J Epidemiol. .

Abstract

The growing body of work in the epidemiology literature focused on G-computation includes theoretical explanations of the method but very few simulations or examples of application. The small number of G-computation analyses in the epidemiology literature relative to other causal inference approaches may be partially due to a lack of didactic explanations of the method targeted toward an epidemiology audience. The authors provide a step-by-step demonstration of G-computation that is intended to familiarize the reader with this procedure. The authors simulate a data set and then demonstrate both G-computation and traditional regression to draw connections and illustrate contrasts between their implementation and interpretation relative to the truth of the simulation protocol. A marginal structural model is used for effect estimation in the G-computation example. The authors conclude by answering a series of questions to emphasize the key characteristics of causal inference techniques and the G-computation procedure in particular.

PubMed Disclaimer

Figures

Figure 1.
Figure 1.
Contrasts between the implementation of traditional regression and the G-computation marginal structural model (G-comp MSM). A is a binary treatment, W = {W1, W2} a vector of confounders, and Y a continuous outcome.

Comment in

References

    1. Cole SR, Hernán MA, Robins JM, et al. Effect of highly active antiretroviral therapy on time to acquired immunodeficiency syndrome or death using marginal structural models. Am J Epidemiol. 2003;158(7):687–694. - PubMed
    1. Petersen ML, Wang Y, van der Laan MJ, et al. Pillbox organizers are associated with improved adherence to HIV antiretroviral therapy and viral suppression: a marginal structural model analysis. Clin Infect Dis. 2007;45(7):908–915. - PMC - PubMed
    1. Westreich D, MacPhail P, Van Rie A, et al. Effect of pulmonary tuberculosis on mortality in patients receiving HAART. AIDS. 2009;23(6):707–715. - PMC - PubMed
    1. Bodnar LM, Davidian M, Siega-Riz AM, et al. Marginal structural models for analyzing causal effects of time-dependent treatments: an application in perinatal epidemiology. Am J Epidemiol. 2004;159(10):926–934. - PubMed
    1. Brotman RM, Klebanoff MA, Nansel TR, et al. A longitudinal study of vaginal douching and bacterial vaginosis—a marginal structural modeling analysis. Am J Epidemiol. 2008;168(2):188–196. - PMC - PubMed

Publication types