StatsPAI: Causal Inference & Empirical Analysis

•
1.9k
•

Performs comprehensive causal inference and empirical analysis in Python, generating publication-ready tables and figures in AER, epidemiology, or ML styles.

StatsPAI is an agent-native Python package designed to automate the full empirical research pipeline for social sciences and public health. It guides users through every step of the research process, including pre-analysis, data descriptives, identification strategies (DID, IV, RD, SCM), and rigorous robustness checks. By mapping code execution to the canonical sections of a published paper, it produces high-quality, reproducible artifacts for LaTeX, Word, and Excel. Whether you are following applied microeconomics conventions (AER/QJE style), public health protocols (target-trial emulation), or modern ML causal inference (DML, Causal Forests), StatsPAI provides a unified API to ensure rigorous, journal-ready results.

主要功能

01Automated generation of publication-ready tables (AER/QJE style) in Word, Excel, and LaTeX.
02Comprehensive robustness gauntlet featuring Oster bounds, E-values, and specification curves.
031,851 GitHub stars
04End-to-end empirical pipelines for applied economics, epidemiology, and causal ML.
05Support for advanced estimators including DID, IV, RD, Synthetic Control, and Double Machine Learning.
06Self-describing API that enables Claude to discover functions and diagnostic tools without external lookups.

使用场景

01Generating Table 1 (descriptives) and Table 2 (main results) for an economics journal submission.
02Performing target-trial emulation and IPTW analysis for public health and epidemiology research.
03Estimating heterogeneous treatment effects (CATE) using causal forests and meta-learners for ML-based causal inference.