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

Difference In Differences Python Packages

Python packages with the GitHub topic difference-in-differences. Sorted by monthly downloads, with stars and forks.
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.

30K 405 55
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.

12K 332 71
bernardodionisi
differences

difference-in-differences in Python

3K 115 26
csmar432
finai-research-workflow

Evidence-first AI workflow for economic and financial research: literature → identification → data → econometrics → verifiable LaTeX. 43 data sources, 58 method modules, 18 AI skills, 30 journal templates.

699 110 4
ZhenHaoFu810
stataflow

Stata-aligned econometrics for Python, with field-level validation across the documented support surface.

674 167 2
jordandeklerk
moderndid

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

427 26 2
burning-cost
insurance-causal-policy

SDID for causal rate change evaluation in insurance pricing — event study, HonestDiD sensitivity, FCA evidence pack (170 tests)

375 0 0
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).

281 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.

199 1 0
gorgeousfish
equitrends

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

134 0 0
gmarinichev
did-imputation

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

125 0 0
TheOmarLab
sctrial

Trial-Aware Statistical Inference for Single-Cell Data

123 4 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.

95 0 0
gorgeousfish
contdid

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

90 0 0
Aman12x
decisive

Causal inference that returns a verdict, not a number: picks the quasi-experimental design (DiD, staggered adoption, synthetic control, ITS), tests its assumptions, and refuses when they fail. pip install decisive

81 0 0
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology