Causal Inference
Regression Discontinuity in Python: RD Plot and Local Linear Estimate
Estimate a treatment effect at a cutoff in Python with regression discontinuity: draw the RD plot, fit a local linear model with statsmodels, and check bandwidth sensitivity, density, and placebo cutoffs.