Skip to content

Commit 2b263be

Browse files
docs(readme_cn): sync positioning block and flagship DID/HDFE entries
Mirrors the 'What StatsPAI is — and is not' positioning block added to the English README in 70dccaf, and fills the same function-table gaps: - DID table: +etwfe, drdid, stacked_did, ddd, cic, twfe_decomposition, wooldridge_did - Regression table: +feols, fepois, feglm, etable (pyfixest backend) Keeps CN/EN READMEs aligned so Chinese users see the same narrative and same feature surface. No code changes. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 9c72f71 commit 2b263be

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

README_CN.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,19 @@ StatsPAI 是一个**面向 AI Agent** 的 Python 因果推断与应用计量经
4040

4141
---
4242

43+
## StatsPAI 是什么,不是什么
44+
45+
StatsPAI **不是** R 的 wrapper。我们从原始论文独立重新实现每一个算法(通过 `.cite()` 暴露引用),少数成熟引擎(pyfixest、rdrobust)使用显式透明的绑定。StatsPAI 的真正差异化在于**上层的统一架构**
46+
47+
- **一个结果对象,一套 API。**`regress()``callaway_santanna()``causal_forest()``notears()`,所有估计器返回同样的 `CausalResult`,共享 `.summary()` / `.plot()` / `.to_latex()` / `.cite()` 接口。R 用户要记 20+ 个互不兼容的 S3 类,StatsPAI 用户只需要记一个。
48+
- **单个 R / Python 包无法企及的广度。** DID + RD + Synth + Matching + DML + Meta-learners + TMLE + Neural Causal + Causal Discovery + Policy Learning + Conformal + Bunching + Spillover + Matrix Completion —— 全部风格统一,全部在 `sp.*` 命名空间下。
49+
- **Agent-native 原生设计。** 自描述 schema(`list_functions()``describe_function()``function_schema()`)让 StatsPAI 成为**首个为 LLM 驱动研究工作流而构建**的计量工具包——任何语言的包都没有这个能力。
50+
- **论文级输出流水线开箱即用。** 每个估计器都直接支持 Word + Excel + LaTeX + HTML + Markdown 导出,不需要额外跳一段 `modelsummary` 风格的舞。
51+
52+
**原则**:R 里有的方法,我们在 Python 里做到同等或更强的功能覆盖;然后叠加 Python 独有的优势——sklearn 生态集成、JAX / PyTorch 后端、agent-native schema。
53+
54+
---
55+
4356
## 完整功能列表
4457

4558
### 回归模型
@@ -59,6 +72,10 @@ StatsPAI 是一个**面向 AI Agent** 的 Python 因果推断与应用计量经
5972
| `ologit()`, `oprobit()` | 有序 Logit / Probit | `ologit` / `oprobit` | `MASS::polr()` |
6073
| `poisson()`, `nbreg()` | 计数模型(泊松、负二项) | `poisson` / `nbreg` | `MASS::glm.nb()` |
6174
| `ppmlhdfe()` | 引力模型伪泊松 MLE | `ppmlhdfe` | `fixest::fepois()` |
75+
| `feols()` | OLS / IV,高维固定效应(pyfixest 后端) | `reghdfe` | `fixest::feols()` |
76+
| `fepois()` | 高维固定效应泊松 | `ppmlhdfe` | `fixest::fepois()` |
77+
| `feglm()` | 高维固定效应 GLM || `fixest::feglm()` |
78+
| `etable()` | 出版级回归表(LaTeX / Markdown / HTML) | `esttab` | `fixest::etable()` |
6279
| `gmm()` | 一般 GMM(任意矩条件) | `gmm` | `gmm::gmm()` |
6380
| `frontier()` | 随机前沿分析 | `frontier` | `sfa::sfa()` |
6481

@@ -73,6 +90,12 @@ StatsPAI 是一个**面向 AI Agent** 的 Python 因果推断与应用计量经
7390
| `honest_did()` | 平行趋势假设敏感性 | Rambachan & Roth (2023) |
7491
| `continuous_did()` | 连续处理 DID(剂量反应) | Callaway, Goodman-Bacon & Sant'Anna (2024) |
7592
| `did_imputation()` | 插补 DID 估计量 | Borusyak, Jaravel & Spiess (2024) |
93+
| `wooldridge_did()` / `etwfe()` | 扩展 TWFE(cohort×post 完全饱和) | Wooldridge (2021) |
94+
| `drdid()` | 2×2 双重稳健 DID(OR + IPW) | Sant'Anna & Zhao (2020) |
95+
| `stacked_did()` | 堆叠事件研究 DID | Cengiz et al. (2019); Baker, Larcker & Wang (2022) |
96+
| `ddd()` | 三重差分(DDD) | Gruber (1994); Olden & Møen (2022) |
97+
| `cic()` | Changes-in-changes 分位 DID | Athey & Imbens (2006) |
98+
| `twfe_decomposition()` | Bacon + de Chaisemartin–D'Haultfoeuille 权重诊断 | Goodman-Bacon (2021); dCDH (2020) |
7699

77100
### 因果推断 — 断点回归
78101

0 commit comments

Comments
 (0)