At this point, StatsPAI has already surpassed Stata and R in the causal inference domain and is beginning to reshape the Python ecosystem. The remaining step is to formalize key empirical results and publish them in a top statistical journal to provide strong academic validation.
StatsPAI 1.6.0: 250,000 lines of code, 925 functions
I originally planned to release version 1.0.0, but ended up writing another 30,000 lines overnight and jumped straight to 1.6. This is simply the pace of the AI era—tools like this are being rapidly brought into existence.
StatsPAI is an agent-native causal inference and econometrics library for Python, with 900+ functions covering DiD, IV, RD, synthetic control, DML, Bayesian methods, causal discovery, and structural modeling. For both AI agents & human researchers. Aligned with Stata and R.
🔗 Repo: github.com/brycewang-stan…
PRs and forks very welcome — whether it's a new estimator, a bug fix, or a doc tweak. Star ⭐ if it saves you a regression. 🙏
StatsPAI v0.9.1 — the RD release.
sp.rd is now the most comprehensive RD toolkit in any language (Python/R/Stata):
• 18+ estimators across 14 modules (~10.3k LOC) • Sharp · Fuzzy · Kink · 2D · Multi-cutoff · RDiT • CCT robust inference, CJM density tests, AK honest CIs!
🔗 Repo: github.com/brycewang-stan…
PRs and forks very welcome — whether it's a new estimator, a bug fix, or a doc tweak. Star ⭐ if it saves you a regression. 🙏
Meet CoPaper.AI — from Stanford's REAP program.
Your AI research co-author. Faster. More rigorous. Covers everything from OLS, Logit, DiD, IV to causal forests.
Full code. Reproducible papers. Built for economists & social scientists.
🔗 copaper.ai
23,000 AI Agent Skills for empirical research — open source.
Causal inference, econometrics, literature review, paper reproduction — one command.
Built by Stanford REAP.
github.com/brycewang-stan…
Finally, a Stata Graph Editor clone for matplotlib.
29 themes, auto-generates Python code, one line to use.
pip install statspai
Open source. Your reproducible workflow just got a lot smoother.
Long-term vision: bring the mature causal inference & econometrics capabilities of Stata and R into a complete Python ecosystem.
No more juggling statsmodels, linearmodels, EconML, and differences with incompatible APIs.
One unified package for Python researchers.
Introducing StatsPAI — an open-source econometrics toolkit for the AI agent era.
150+ functions. One unified API. From OLS to causal forests.
pip install statspai
github.com/brycewang-stan…
What it covers:
- Classic econometrics (IV, panel, Heckman)
- DID, synthetic control, RDD
- ML causal (DML, causal forest, TMLE)
- Publication-ready output (.docx, .latex, .xlsx)
Built for AI agents with standardized interfaces.
MIT licensed, open source forever.
Introducing StatsPAI (Stanford REAP & CoPaper.AI): our vision is to build the unified Python toolkit for causal inference & econometrics.
One import, every method: DID, synthetic control, IV, RDD, matching, and more.
pip install statspai
💻 github.com/brycewang-stan…
🔬 We open-sourced 23,000+ agent skills for empirical research across 8 social science disciplines.
Skills encode full research methodology — so AI agents know what a complete DID/IV/RDD analysis looks like, not just individual steps.
github.com/brycewang-stan…
24 Followers 818 FollowingFounder of StatsPai
Building https://t.co/sqYBSThFu1 — AI research co-author
https://t.co/I5vYNNyBUE | https://t.co/dd6oOKtevA
3K Followers 884 FollowingStatistician, financial economist, computer scientist, astronomer, burner, human. We are all entitled to our opinions (including me!), but not our own facts.
1.6M Followers 267 FollowingThe engine room of @Google. Building AI safely and responsibly to solve the world’s most complex problems. Join us: https://t.co/jUHQA27iBL
36K Followers 107 FollowingFlowith is an agentic AI workspace that connects your knowledge, creation, and execution in a single flow.
Canvas: https://t.co/BYgtZxMAKH
Matrix: https://t.co/A9lqp5jPLd
2K Followers 246 FollowingPartner @AMINO_Capital; investing in over 160 early stage startups in their seed, A and B rounds. Mentor/Judge @BigIdeasCal, #stanfordGSB
224K Followers 19K FollowingFor some reason, I've turned myself inside out and all my guts have spilled onto my blog. Truth and vulnerability or the currency of content. NM in chess.
3.1M Followers 24K FollowingFamily First. CEO of @Vaynermedia. 🐈⬛ Creator of @veefriends. Investor in Twitter, venmo, FB & more. Die hard @NYJets fan. @winetexts @vaynersports
1.4M Followers 0 FollowingAuthor of the #1 NYT bestseller Atomic Habits (https://t.co/aWrO9DWkH5). I write about building good habits. Over 3 million people read my 3-2-1 newsletter.
2K Followers 33 FollowingThe secrets are in the slides™. How unicorn startups, epic fails, and headline makers won deals 🔔 Hit notify to keep your ear to the ground
1.3M Followers 800 FollowingFounder/Chair, AMI Labs; Professor, NYU; Partner, 224 Ventures; Ex-Chief AI Scientist, Meta.
Researcher in AI, ML, Robotics, etc.
ACM Turing Award Laureate.
1.9M Followers 1K FollowingCo-Founder of Coursera; Stanford CS adjunct faculty. Former head of Baidu AI Group/Google Brain. #ai #machinelearning, #deeplearning #MOOCs
1.1M Followers 64 Followinghttps://t.co/A9eTFq6Xbx
https://t.co/3RHK5vqQo7
Posts are not investment advice or an advertisement for investment services. See https://t.co/nX2FtaLE06.
958 Followers 39 FollowingHedge fund administration and end-to-end launches.
We handle the legal setup, the filings, the accounting, and the investor reporting so managers can trade.
655K Followers 155 FollowingLets Learn #Python with tips and tricks. Free Python Course: https://t.co/l9NKxZWrh7 biz : [email protected] AI Community Partner. DM for Everything.
5.4M Followers 4 FollowingOpenAI’s mission is to ensure that artificial general intelligence benefits all of humanity. We’re hiring: https://t.co/dJGr6LgzPA