diff-diff
Difference-in-
Differences.
Now in Python.
Up to 2,000x faster than R
$ pip install diff-diff
Up to 2,000x faster than R
Researchers deserved better.
One library. Everything you need.
Benchmarked at 10K unit scale against R packages
sklearn-like fit() + statsmodels-style output
| Comparison | Result |
|---|---|
| Point estimates vs R | Identical (10+ decimals) |
| Standard errors | Within 1-3% |
| R packages tested | did, synthdid, fixest |
| Real-world validation | MPDTA dataset |
Academic-grade accuracy. No compromises.
Publication-ready visualizations included
Finally escape R for your causal inference work
github.com/igerber/diff-diff
Full documentation & tutorials included
MIT Licensed | Open Source
Difference-in-Differences for Python