Reproducing Scott Cunningham's LaLonde test in Python — covariates rescue a difference-in-differences ATT only when they enter the control group's counterfactual trend, recovering the $1,794 experimental benchmark from a naive $3,621.
A beginner-friendly introduction to causal inference using DoWhy's four-step framework with simulated observational data on working from home and productivity