European Journal of Epidemiology

, Volume 30, Issue 10, pp 1119–1127

G-computation demonstration in causal mediation analysis



Recent work has considerably advanced the definition, identification and estimation of controlled direct, and natural direct and indirect effects in causal mediation analysis. Despite the various estimation methods and statistical routines being developed, a unified approach for effect estimation under different effect decomposition scenarios is still needed for epidemiologic research. G-computation offers such unification and has been used for total effect and joint controlled direct effect estimation settings, involving different types of exposure and outcome variables. In this study, we demonstrate the utility of parametric g-computation in estimating various components of the total effect, including (1) natural direct and indirect effects, (2) standard and stochastic controlled direct effects, and (3) reference and mediated interaction effects, using Monte Carlo simulations in standard statistical software. For each study subject, we estimated their nested potential outcomes corresponding to the (mediated) effects of an intervention on the exposure wherein the mediator was allowed to attain the value it would have under a possible counterfactual exposure intervention, under a pre-specified distribution of the mediator independent of any causes, or under a fixed controlled value. A final regression of the potential outcome on the exposure intervention variable was used to compute point estimates and bootstrap was used to obtain confidence intervals. Through contrasting different potential outcomes, this analytical framework provides an intuitive way of estimating effects under the recently introduced 3- and 4-way effect decomposition. This framework can be extended to complex multivariable and longitudinal mediation settings.


G-computation Parametric g-formula Mediation analysis Effect decomposition Simulation 

Supplementary material

10654_2015_100_MOESM1_ESM.docx (86 kb)
Supplementary material 1 (DOCX 86 kb)

Copyright information

© Springer Science+Business Media Dordrecht 2015

Authors and Affiliations

  1. 1.Department of Epidemiology, Fielding School of Public HealthUniversity of California, Los Angeles (UCLA)Los AngelesUSA
  2. 2.California Center for Population Research (CCPR)Los AngelesUSA
  3. 3.UCLA Center for Health Policy ResearchLos AngelesUSA

Personalised recommendations