Statspai Analysis

Run a full empirical / causal analysis in Python with StatsPAI (import statspai as sp) — applied-economics style (DID / RD / IV / synthetic control / DML / matching with estimating equation, identifying assumption, Table 1, main table, event-study figure, robustness gauntlet, Word / Excel / LaTeX export), epidemiology style (target-trial emulation, IPTW + g-formula + TMLE, Mendelian randomization, survival, E-values, STROBE / TRIPOD reporting), ML-causal style (DML, meta-learners, causal forest, CATE, policy learning, conformal, fairness), or decomposition style (Oaxaca-Blinder, Kitagawa, DFL, Gelbach, RIF). Use when the user names StatsPAI / statspai, asks for an AER / QJE-style empirical pipeline, event study, honest DID, spec curve, regression tables to Word / Excel (outreg2 / esttab / modelsummary equivalent), a replication bundle, a target-trial or g-formula analysis, or CATE / policy learning in Python, including requests in Chinese (实证分析 / 因果推断 / 双重差分 / 事件研究 / 回归表导出).

brycewang-stanford Updated 5k repo stars
StatsPAI - Python-native Stata and R replacement for applied causal inference

File contents

brycewang-stanford/StatsPAI commit c0496b0af1

Frequently asked questions

npx get-skill add brycewang-stanford/statspai-analysis