40-py-econometrics-pyfixest

仓库创建 2026年4月3日最近提交 22 天前SkillHot 收录 22 天前
▸ 精选理由

结构化、无赘述的参考,便于快速生成或审查计量代码片段。

这个 Skill 做什么

PyFixest 的密集机器可读参考,面向 LLM 与开发者的 API 速查表。

把 PyFixest 的函数和参数做成浓缩的机器可读速查表,便于 LLM 或开发者快速查用法和配置。需要写回归、固定效应、IV 或调模型脚本时就用,能迅速定位 feols 等核心估计函数的参数含义。特点是信息精简到代码层面,没有冗词,方便当成开发与自动化调用的参考。

开发编程PyFixest计量工具API 参考通用
2.7k
Stars
361
Forks
40
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/brycewang-stanford/Auto-Empirical-Research-Skills/main/skills/40-py-econometrics-pyfixest/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/brycewang-stanford/Auto-Empirical-Research-Skills/main/skills/40-py-econometrics-pyfixest/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# PyFixest LLM Skill Reference

> Dense, machine-readable reference for LLMs. No prose padding.
> Version: matches latest PyFixest release.

## Package Import

```python
import pyfixest as pf
```

## Core Estimation Functions

### pf.feols() — OLS / WLS / IV with Fixed Effects

```python
pf.feols(
    fml: str,                    # Formula: "Y ~ X1 + X2 | fe1 + fe2" or IV: "Y ~ exog | fe | endog ~ inst"
    data: pd.DataFrame,
    vcov: str | dict = None,     # "iid", "HC1"-"HC3", {"CRV1": "clust"}, {"CRV3": "clust"}, {"CRV1": "c1+c2"}
    weights: str = None,         # Column name for weights
    ssc: dict = None,            # Small sample correction, see pf.ssc()
    fixef_rm: str = "singl
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有