Estimate a treatment’s effect on an outcome by controlling for confounders directly, or by removing their effects from both variables first. The Frisch–Waugh–Lovell theorem says both approaches produce the same treatment coefficient in a linear model. section 8.1.1
Apply the residualization strategy in three steps:
- Regress treatment D on confounders C, predict each treatment value, and retain the residuals. section 8.1.1
- Regress outcome O on C, predict each outcome value, and retain the outcome residuals. section 8.1.1
- Regress residualized outcome on residualized treatment; its coefficient estimates the same effect as O ~ D + C. section 8.1.1
Synthetic treatment and outcome data
Synthetic data generate a confounder, treatment, and outcome with a treatment effect of 5. Direct adjustment estimates 4.9473, while the FWL residual regression returns 4.947307.
Figure 8.2 DML strategy applied to linear regressions to calculate the coefficient from D to O
Trace the residualization strategy from confounder adjustment to the final treatment-effect regression. section 8.1.1
