Causal Inference
Instrumental Variables in Python: 2SLS with linearmodels
Estimate a causal effect when a confounder you can't measure biases OLS, using an instrument and two-stage least squares in Python with linearmodels IV2SLS.
Estimate a causal effect when a confounder you can't measure biases OLS, using an instrument and two-stage least squares in Python with linearmodels IV2SLS.
Estimate a treatment effect from observational data with the DoubleML package, understand partialling out and cross-fitting by building it by hand, and see when flexible controls beat linear regression.