PyRank
  • Insights
  • PyPI
  • GitHub
  • Search
  • Compare
  • Advisories
  • Ecosystem
  • About

Difference In Differences Python Packages

Python packages with the GitHub topic difference-in-differences. Sorted by relevance, with stars and monthly downloads.
igerber
diff-diff

Difference-in-Differences causal inference in Python. Callaway-Sant'Anna, Synthetic DiD, Honest DiD, event studies. sklearn-like API, validated against R.

46K 278 40
brycewang-stanford
statspai

StatsPAI is the first Agent-native Python library for causal inference and applied econometrics — unified API, broad cross-method coverage, structured result objects, machine-readable schemas, Skills, an MCP server, and R/Stata parity validation.

7K 266 52
bernardodionisi
differences

difference-in-differences in Python

5K 112 27
gorgeousfish
diddesign

Double Difference-in-Differences for Python — GMM-optimal combination of multiple pre-treatment periods with bootstrap inference, diagnostic tools, and publication-ready plotting (Egami & Yamauchi, 2023).

2K 0 0
gorgeousfish
pretest-did

Python implementation of the conditional extrapolation pre-test for difference-in-differences (Mikhaeil & Harshaw, 2026). Returns pass/fail decision, conditional confidence interval, and diagnostic scalars as a typed result object.

810 0 0
burning-cost
insurance-causal-policy

Causal evaluation of insurance pricing interventions using Synthetic Difference-in-Differences

770 0 0
gorgeousfish
equitrends

Equivalence tests for pre-trends in Difference-in-Differences estimation. Implements max, mean, and RMS tests from Dette & Schumann (2024, JBES).

698 0 0
jordandeklerk
moderndid

Scalable, GPU-accelerated Python library for modern difference-in-differences.

593 25 2
gmarinichev
did-imputation

Borusyak-Jaravel-Spiess (2024) difference-in-differences imputation estimator with event-study plots for Python.

532 0 0
gorgeousfish
contdid

Continuous treatment difference-in-differences estimation for Python — dose-response curves, event-study dynamics, and uniform confidence bands.

391 0 0
random-walks
factor-factory

Domain-agnostic factor-model + analysis-pipeline framework with Protocol-based pluggable engines (DiD, SDID, SCM, RDD, survival, event study, mediation, het-TE, …) and first-class jellycell tearsheet integration.

357 1 0
jordandeklerk
doublediff

Scalable, GPU-accelerated Python library for modern difference-in-differences.

18 24 2
jordandeklerk
causaldid

Modern difference-in-differences estimators.

6 17 2
    • Data from PyPI, GitHub, ClickHouse, and BigQuery