You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(readme): add 'What StatsPAI is — and is not' positioning block
Preempts the 'isn't this just a wrapper?' critique with a concrete
statement of what StatsPAI contributes beyond R/Stata/existing Python:
- Independent re-implementation + citation transparency (not code copy)
- Unified CausalResult across 390+ functions (R has 20+ S3 classes)
- Scope breadth no single package matches (DID+RD+Synth+DML+Neural+...)
- Agent-native schemas (list_functions/describe_function/function_schema)
- Publication pipeline built in (Word/Excel/LaTeX/HTML/Markdown)
Also surfaces the flagship DID estimators that were missing from the
feature table: etwfe, drdid, stacked_did, ddd, cic, twfe_decomposition.
Adds pyfixest-backed feols/fepois/feglm/etable to the regression table
since they were just exposed at the top level.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
StatsPAI is **not** a wrapper for R. We independently re-implement every algorithm from the original papers (with citations exposed via `.cite()`), and for a few mature engines (pyfixest, rdrobust) we use explicit, transparent bindings. What makes StatsPAI different is **the unifying layer on top**:
46
+
47
+
-**One result object, one API surface.** Every estimator — from `regress()` to `callaway_santanna()` to `causal_forest()` to `notears()` — returns a `CausalResult` with the same `.summary()` / `.plot()` / `.to_latex()` / `.cite()` interface. R users juggle 20+ incompatible S3 classes; StatsPAI users juggle one.
48
+
-**Scope no single R or Python package matches.** DID + RD + Synth + Matching + DML + Meta-learners + TMLE + Neural Causal + Causal Discovery + Policy Learning + Conformal + Bunching + Spillover + Matrix Completion — all consistent, all under `sp.*`.
49
+
-**Agent-native by design.** Self-describing schemas (`list_functions()`, `describe_function()`, `function_schema()`) make StatsPAI the first econometrics toolkit built for LLM-driven research workflows. No other package — in any language — offers this.
50
+
-**Publication pipeline out of the box.** Word + Excel + LaTeX + HTML + Markdown export from every estimator, not a separate `modelsummary`-style dance.
51
+
52
+
If a method exists in R, we aim to match or exceed its feature set in Python — and then add what Python can uniquely offer (sklearn integration, JAX/PyTorch backends, agent-native schemas).
0 commit comments