Skip to contentScholarGate
LibraryBookshelfDeskReview StudioAssistant
Sign in
On this page
IntuitionHow it worksWhen to use itStrengths & limitationsCommon pitfallsApplicationsFrequently asked🔒 Read the full methodSourcesRelated methods
Cite this pageSpotted an issue on this page? Report or suggest a fix →
Home›Causal inference›G-Computation (Parametric G-formula)
Regression modelCausal

G-Computation (Parametric G-formula)

Also known as: G-formula, Parametric G-formula, Standardization

G-computation is a causal inference method for estimating the effect of an intervention or treatment on an outcome from observational data. Developed by James M. Robins in 1986, it provides a parametric approach to standardization that can handle time-varying exposures and confounders. The method estimates what the population outcome would be under different intervention scenarios by utilizing fitted outcome models.

ScholarGate
  1. Regression model
  2. v1
  3. 3 Sources
  4. PUBLISHED
Cite this page →
Tools & resources
Download slides
Learn & explore

Read the full method

Members only

Sign in with a free account to read this section.

Sign in

Method map

The neighbourhood of related methods — select a node to explore.

G-Computation
Doubly Robust EstimationInverse Probability Weig…Marginal Structural Model

When to use it

Use g-computation when estimating causal effects of exposures in observational studies where confounding is a concern and you are willing to assume no unmeasured confounding. The method is particularly valuable for complex exposure patterns, time-varying confounders, and when you want to estimate effects of hypothetical interventions (e.g., if smoking were eliminated tomorrow). It is less suitable when the positivity assumption is severely violated, when the outcome model is difficult to specify correctly, or when interactions between exposure and confounders are complex and not well captured by the fitted model.

Strengths & limitations

Strengths
  • Handles time-varying confounders and exposures that are affected by past outcomes, situations where simple regression adjustment fails
  • Can estimate effects of dynamic interventions (policies that adapt based on individual characteristics over time)
  • Flexible in specifying the outcome model, allowing use of nonlinear models and flexible functional forms
  • Intuitive interpretation: the estimated causal effect is the difference in outcomes under different intervention scenarios in the actual population
  • Can estimate effects of sustained interventions and cumulative effects in longitudinal studies
Limitations
  • Relies on assumption of no unmeasured confounding, which cannot be tested from data alone
  • Requires specification of a correct outcome model; misspecification biases estimates and there is no simple way to detect misspecification
  • Requires positivity assumption (non-zero probability of all exposure values at all levels of confounders), which may be violated with rare exposures
  • Computationally intensive, especially with large datasets or complex outcome models requiring simulation
  • Performance depends heavily on overlap between exposure groups in the confounder distribution

Frequently asked

How is g-computation different from simple outcome regression adjustment?

Simple regression adjustment estimates conditional effects within covariate strata. G-computation estimates marginal (population-level) causal effects by averaging predicted outcomes under different intervention scenarios across the entire population. For non-linear models or when effect modification is present, these can differ substantially.

Do I need to assume no unmeasured confounding for g-computation to work?

Yes. G-computation, like all standard causal inference methods, requires the assumption that all confounders are measured. If important confounders are unmeasured, bias will remain even with perfect model specification. Sensitivity analyses can assess robustness to unmeasured confounding.

What should I do if my outcome model does not fit well?

Poor model fit suggests the model may be misspecified. Try more flexible functional forms, add interaction terms, use nonparametric or semiparametric methods. However, improving fit on observed data does not guarantee the model is correct for prediction under intervention scenarios. Always examine residuals, test for interactions, and conduct sensitivity analyses.

How do I get confidence intervals for g-computation estimates?

Bootstrap resampling is the standard approach: resample the original data with replacement, fit the outcome model to each bootstrap sample, perform g-computation, and repeat. The distribution of bootstrap estimates provides the confidence intervals. Alternatively, analytical methods using the delta method can be used, though bootstrap is more robust.

Sources

  1. Robins, J. M. (1986). A new approach to causal inference in mortality studies with sustained exposure periods: application to control of the healthy worker survivor effect. Mathematical Modelling, 7(9-12), 1393-1512. DOI: 10.1016/0270-0255(86)90088-6 ↗
  2. Taubman, S. L., Robins, J. M., Mittleman, M. A., & Hernán, M. A. (2009). Intervening on risk factors for coronary heart disease: an application of the parametric g-formula. International Journal of Epidemiology, 38(6), 1599-1611. DOI: 10.1093/ije/dyp192 ↗
  3. Ahern, J., Hubbard, A., & Galea, S. (2009). Estimating the effects of potential public health interventions on population disease burden: a step-by-step illustration of causal inference methods. American Journal of Epidemiology, 169(9), 1140-1147. DOI: 10.1093/aje/kwp015 ↗

How to cite this page

ScholarGate. (2026, June 3). G-Computation (Parametric G-formula). ScholarGate. https://scholargate.app/en/causal-inference/g-computation

Related methods

Doubly Robust EstimationInverse Probability Weighting

Which method?

Set this method beside its closest kin and read them side by side — the library lays the books on the table; the choice is yours.

  • Doubly Robust EstimationCausal inference↔ compare
  • Inverse Probability WeightingCausal inference↔ compare
Compare side by side →

Referenced by

Marginal Structural Model

Similar methods

Parametric g-FormulaMarginal Structural ModelMarginal Structural Model (IPTW)Heterogeneous Treatment Effect Marginal Structural ModelDynamic Inverse Probability WeightingMulti-period Inverse Probability WeightingRobust Marginal Structural ModelPolicy Evaluation Marginal Structural Model

Related reference concepts

Counterfactual ReasoningCausal InferenceCausal IdentificationSensitivity AnalysisConfoundingEffect Modification and Interaction

Spotted an issue on this page? Report or suggest a fix →

ScholarGate — G-Computation (G-Computation (Parametric G-formula)). Retrieved 2026-07-21 from https://scholargate.app/en/causal-inference/g-computation · Dataset: https://doi.org/10.5281/zenodo.20539026
Quick facts
Originator
James M. Robins
Subfamily
Causal
Year
1986
Type
Parametric causal effect estimation
Related methods
Doubly Robust EstimationInverse Probability Weighting
ScholarGate

A content-first reference library for research methods — what each one is, how it works, and where it comes from.

Open data (CC-BY)

Explore

  • Library
  • Search the library…
  • Browse by field
  • Fields
  • Journey
  • Compare
  • Which method?

Reference

  • Subjects
  • Atlas
  • Glossary
  • Methodology
  • Philosophy

Your tools

  • Bookshelf
  • Desk
  • Chat

Company

  • About
  • Pricing
  • Contact
  • Suggest a method

Entries are compiled from published sources for reference. Verifying the accuracy and suitability of any information for your own use remains your responsibility.

© 2026 ScholarGate · A research-method reference library
  • Privacy
  • Cookies
  • Terms
  • Delete account