Panel + engine framework for causal / econometric analysis
factor-factory · Python
Protocol-based panel + estimator framework for causal econometrics and reproducible stats. 20 engine families: DiD, RDD, SCM, spatial, inequality, changepoint, STL.
Domain-agnostic Python framework for panel data analysis and causal inference. Two stable contracts — the Panel (unit × period × treatment) and the Engine (a Protocol for a single estimator family) — with 20 engine families behind the contract.
Research code usually grows a custom did_helpers.py per project. Those helpers drift between papers, miss diagnostics, and silently disagree when you cross-check estimators. factor-factory centralizes the econometric engine surface: the same Panel goes into TWFE, Callaway-Sant'Anna, Sun-Abraham, and Borusyak-Jaravel-Spiess with one call, reports returned as frozen dataclasses with ATT / SE / 95% CI / p / n / diagnostics.
rd_robust wrapping the NSF-funded Calonico-Cattaneo-Farrell-Titiunik rdrobustPanel.from_records / TreatmentEvent / Panel.validate()factor_factory.jellycell.cells / figure / notebooks / tearsheetsDomain-neutral core. nyc311 >= 1.0 ships a PanelDataset.to_factor_factory_panel() adapter and a 17-family as_factor_factory_estimate() dispatcher. subway-access >= 0.5 uses factor-factory for its engine-audit appendix. The blaise-website packages/python-showcase/ routes every causal claim through factor-factory.
═══════════════════════════════════════
Best viewed in Netscape Navigator 4.0at 800×600
© 2026 Blaise Albis-Burdige | hello@blaiseab.com
[ Top of Page ]