Chapter_21
9/17/25About 4 min
### Chapter 21: G-METHODS FOR TIME-VARYING TREATMENTS **Technical Focus**: Solutions to bias in traditional methods for time-varying treatments with treatment-confounder feedback, using g-methods (g-formula, IP weighting, g-estimation, doubly-robust estimators).
21.1 The g-formula for time-varying treatments
Context: Extends the g-formula (Chapter 13) to time-varying treatments under sequential exchangeability, positivity, and consistency.
Technical Points:
- Core Theory: For time-varying treatment , the g-formula for is:
where .
- Key Formula: Standardizes mean outcome to confounder distribution (). Requires positivity: for observed .
- Application: In Table 21.1 (sequentially randomized experiment), estimates (null effect), correcting traditional methods' bias.
- Generalization: For time points:
Details Points:
- Simulation View: Under sequential exchangeability, g-formula simulates counterfactual outcomes under strategy .
- Critical Notes:
- Omitting confounders (e.g., ) invalidates causal interpretation.
- Components (e.g., ) may lack causal meaning individually.
- Fine Point 21.1: "History" includes confounders needed for exchangeability, not strictly temporal order.
21.2 IP weighting for time-varying treatments
Technical Points:
- Weights:
- Nonstabilized:
- Stabilized:
- Estimation: is in pseudo-population created by weights.
- Marginal Structural Models (MSM): For high-dimensional strategies, specify . Fit via weighted least squares.
Details Points:
- Application: In Table 21.1, IP weighting yields correct null effect (60 vs. 60).
- Robustness: MSMs avoid g-null paradox (unlike parametric g-formula).
- Software:
gfoRmulaR package,GFORMULASAS macro. - Technical Point 21.2: For dynamic strategies, use .
21.3 Doubly robust estimator for time-varying treatments
Technical Points:
- Approach: Combines g-formula and IP weighting. Consistent if either treatment or outcome model is correct.
- **Steps for "always treat" ():
- Fit treatment model for .
- Compute time-varying IP weights .
- Fit sequential outcome models with as covariate.
- Estimate as sample mean of .
- Robustness: -robust (correct if treatment model for times and outcome model for hold).
Details Points:
- Extensions: Targeted Minimum Loss-Based Estimator (TMLE) for static/dynamic strategies (Technical Point 21.6).
- Challenges: Computational complexity; emerging software for machine learning integration.
21.4 G-estimation for time-varying treatments
Technical Points:
- Structural Nested Mean Model (SNMM): Models blip effect of treatment at :
- G-estimation:
- Compute .
- Solve estimating equation for such that .
- Closed Form: For linear SNMM, use (Technical Point 21.8).
Details Points:
- Saturated Example: In Table 21.1, g-estimation yields (null effect).
- Optimal Strategies: SNMMs can estimate (Technical Point 21.13).
21.5 Censoring as a time-varying treatment
Technical Points:
- Handling Censoring: Treat censoring indicators as time-varying treatment.
- g-formula with Censoring:
- IP Weighting: Use weights .
Details Points:
- Survival Analysis: Extend to failure-time outcomes via hazards models (Technical Point 21.10).
- Stabilized Weights: Reduce variance by conditioning on past treatment.
21.6 The big g-formula
Technical Points:
- Concept: g-formula including all variables (measured , unmeasured ) under causal DAGs.
- Identification: If DAG is causal, big g-formula identifies .
- Front-Door Formula Example: Reduces to .
Details Points:
- Non-Observational Formulas: e.g., front-door criterion valid under d-separation (Technical Point 21.11).
- Limitation: Requires correct causal DAG specification (unverifiable in practice).
Summary Concluded