G-Computation (Parametric Standardisation)
G-computation estimates a causal contrast by fitting an outcome model on treatment and covariates, predicting every unit under treatment and under control, and averaging the two sets of predictions.
G-계산은 처치와 공변량으로 결과 모형을 적합한 뒤 모든 개체를 처치·비처치 상태로 각각 예측하고 그 평균을 비교해 인과 효과를 추정하는 방법입니다.
How can I turn my regression model into an average treatment effect or a marginal risk difference and risk ratio?
로지스틱 회귀 모형으로 처치의 평균 효과를 위험차와 위험비로 보고하려면 어떻게 해야 하나요?
G-computation fits one outcome model, sets treatment to 1 and then to 0 for every unit, and averages the predicted outcomes to obtain standardised means. Their difference or ratio is the average treatment effect, with percentile bootstrap intervals that refit the model in each resample.
When to use G-Computation (Parametric Standardisation)
- You want a marginal effect (risk difference, risk ratio or odds ratio) from a logistic or Poisson outcome model.
- Treatment was not randomised and you trust a model for the outcome given treatment and measured confounders.
- You need the effect in the treated (ATT) as well as in the whole sample (ATE).
When to use something else
- You are unsure about the outcome model but can model treatment assignment well; use inverse probability weighting or a doubly robust estimator such as AIPW.
- There is little overlap between treated and untreated covariate distributions; use matching or overlap weights so the model does not extrapolate.
Assumptions and requirements
- No unmeasured confounding given the covariates.
- Positivity: every covariate pattern has a chance of either treatment.
- The outcome model (linear, logistic or Poisson, optionally with treatment-by-covariate interactions) is correctly specified.
What the analysis reports
- Standardised mean outcome under treatment and under control
- Difference, ratio and (for binary outcomes) odds ratio with bootstrap SE and 95% CI
- Propensity-score overlap check
- Effect plot with confidence interval
How to report it
G-computation with a [value] outcome model gave standardised means of [value] under treatment and [value] without, an ATE of [value] (bootstrap 95% CI [value], [value]).
Common variants
자주 쓰는 설정
The same analysis with settings already chosen. Each runs G-Computation (Parametric Standardisation) itself, at the same price.
- G-computation with a probit outcome model — model set to “probit”
- G-computation with a fractional logit outcome model — model set to “flogit”
- G-computation with a fractional probit outcome model — model set to “fprobit”
- G-computation with a heteroskedastic probit outcome model — model set to “hetprobit”; het set to “None”
- Predictive margins by covariate level — margins by set to “None”
Related methods
- Augmented Inverse Probability Weighting (Doubly Robust)
- Inverse Probability Weighting (IPW)
- Marginal Effects Analysis
How this method is validated
이 방법의 검증 근거
- Automated tests. Checked by automated run tests; no external reference comparison is recorded yet.
자동 시험. 자동 실행 시험을 거칩니다. 외부 참조값과 대조한 기록은 아직 없습니다.
Run G-Computation (Parametric Standardisation) on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable, a treatment indicator and predictor (feature) columns
- Price
- 600 credits for one analysis up to 10,000 rows (complexity level 4); larger or wider data costs more. Optional methodologist review: 2400 credits.
- Checking
- Automated run tests; no external reference comparison yet
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.