G-Estimation of Structural Nested Mean Models
G-estimation fits a structural nested mean model, which describes how much the expected outcome would change if the treatment were removed (the blip function), by finding the effect parameters that make the treatment-free outcome unrelated to treatment given the confounders.
G-추정은 처치를 없앴을 때 기대 결과가 얼마나 달라지는지를 나타내는 구조적 내포 평균 모형(블립 함수)을, 처치를 제거한 결과가 교란변수를 고정했을 때 처치와 무관해지도록 하는 효과 모수를 찾아 적합하는 방법입니다.
How large is the treatment effect, and does it vary with patient characteristics, when treatment was assigned according to measured confounders?
측정된 교란변수에 따라 처치가 배정되었을 때, 처치효과는 얼마나 크며 대상자의 특성에 따라 달라질까요?
The blip is modelled as treatment times (psi_0 + psi_1 times the modifiers). The method solves sum (A - E[A | L]) Z (Y - A Z psi - E[...| L]) = 0 in closed form, with a logistic or linear model for treatment and an optional linear outcome model that makes the estimator doubly robust, and gives sandwich standard errors that account for both fitted nuisance models.
When to use G-Estimation of Structural Nested Mean Models
- You want the effect of a binary or continuous treatment adjusted for measured confounders.
- You want to model how the treatment effect changes with baseline effect modifiers.
- You want protection against misspecifying either the treatment model or the outcome model.
When to use something else
- Treatment varies over time with time-varying confounding: use Parametric g-Formula for Time-Varying Treatments
- You only need a population-average effect from an outcome model: use G-Computation (Parametric Standardisation)
- You want flexible machine-learning nuisance models: use Double Machine Learning (DML)
Assumptions and requirements
- No unmeasured confounding given the covariates
- The blip model is correctly specified
- Treatment model or outcome model is correctly specified
- Positivity of treatment given confounders
What the analysis reports
- Blip parameters psi with sandwich standard errors and confidence intervals
- Effect-modification terms
- Range of fitted propensity scores
How to report it
G-estimation of a structural nested mean model gave psi = [value] (95% CI [value], [value]) per unit of [treatment], with an interaction of [value] for [modifier].
Related methods
- G-Computation (Parametric Standardisation)
- Augmented Inverse Probability Weighting (Doubly Robust)
- Dynamic Treatment Regimes (Q-Learning and A-Learning)
- Treatment Switching Adjustment (RPSFTM, IPCW, Two-Stage)
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with statsmodels and direct computations (formulas, enumeration or simulation) at a stated tolerance of 1e-5.
독립 계산. statsmodels·직접 계산(식·열거·모의실험) 대조 참조 시험 1건 통과(허용오차 1e-5).
Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.
허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.
Run G-Estimation of Structural Nested Mean Models on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable, a treatment indicator and predictor (feature) columns
- Price
- 400 credits for one analysis up to 10,000 rows (complexity level 3); larger or wider data costs more. Optional methodologist review: 1800 credits.
- Checking
- Compared with independent computations
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.