Sequential G-Estimation of Controlled Direct Effects
Sequential g-estimation estimates the controlled direct effect, the effect of treatment if the mediator were held fixed at one value for everyone. It first removes the mediator's effect from the outcome and then regresses this demediated outcome on treatment, which avoids the bias from conditioning on variables that the treatment changes.
순차적 g-추정은 모든 사람의 매개변수를 한 값으로 고정했을 때의 처치효과인 통제 직접효과를 추정합니다. 먼저 결과에서 매개변수의 효과를 제거한 뒤 이 탈매개 결과를 처치에 회귀하므로 처치가 바꾸는 변수를 통제할 때 생기는 편향을 피합니다.
What would the effect of the treatment be if the mediator were fixed at the same level for everyone?
모든 사람의 매개변수를 같은 수준으로 고정한다면 처치의 효과는 얼마일까요?
The outcome is regressed on treatment, mediator, their product, baseline confounders and intermediate confounders to estimate how much the mediator moves the outcome. That mediator effect is subtracted to give each unit's outcome as if the mediator were at the chosen value. The demediated outcome is then regressed on treatment and baseline confounders only, and the treatment coefficient is the controlled direct effect. Bootstrap resampling of both steps gives the standard error.
When to use Sequential G-Estimation of Controlled Direct Effects
- Some confounders of the mediator-outcome link are affected by treatment.
- You want the effect that remains after an intervention fixes the mediator.
- Linear models are reasonable.
When to use something else
- You want the indirect effect as well: use Regression-with-Residuals Mediation Analysis
- There are no intermediate confounders and you want natural effects: use Causal Mediation Analysis (Natural Direct and Indirect Effects)
- The target is how the treatment effect varies with covariates: use Meta-Learners for Heterogeneous Effects (S, T, X, DR)
Assumptions and requirements
- No unmeasured treatment-outcome confounding given baseline covariates
- No unmeasured mediator-outcome confounding given treatment, baseline and intermediate confounders
- Correct linear model for the mediator's effect
What the analysis reports
- Controlled direct effect at the chosen mediator value
- Bootstrap SE, percentile CI and p-value
- Total effect and eliminated effect
- First-stage mediator coefficients
How to report it
With the mediator fixed at [value], the controlled direct effect was [value] (bootstrap SE [value], 95% CI [value] to [value]).
Related methods
- Regression-with-Residuals Mediation Analysis
- G-Estimation of Structural Nested Mean Models
- Causal Mediation Analysis (Natural Direct and Indirect Effects)
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with statsmodels at a stated tolerance of 1e-8.
독립 계산. statsmodels 대조 참조 시험 1건 통과(허용오차 1e-8).
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 Sequential G-Estimation of Controlled Direct Effects on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable, a treatment indicator and mediator
- 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.