causal-inference-analysis
Installation
SKILL.md
Causal Inference Analysis
Practical implementation guide for DID, IV, RDD, and Synthetic Control in Python and Stata. Covers setup, estimation, assumption testing, and output generation.
Quick Reference
| Method | Python Library | Stata Command |
|---|---|---|
| Two-way FE / DID | linearmodels.PanelOLS |
reghdfe |
| Staggered DID (CS) | csdid / pyfixest |
csdid (ado) |
| Staggered DID (SA) | pyfixest |
eventstudyinteract |
| IV / 2SLS | linearmodels.IV2SLS |
ivregress 2sls / ivreg2 |
| Shift-share IV | manual + linearmodels |
ssiv (ado) |
| RDD | rdd / rdrobust (Python) |
rdrobust, rddensity |
| Synthetic Control | synth_runner / pysynth |
synth |
| Double-LASSO | doubleml |
pdslasso |