XE

xiaomihu1992/econometrics-skill

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

42 stars 质量 55 趋势 28MIT

(计量经济学相关)17因果推断器(OLS,PSM/IPW,IV/2SLS,DD,RDD)作为AI编码代理技能被包装,具有方法选择,解释模板,以及应用工作流程.

概览

——从OLS到RDD的17个估计器,被包装为AI编码代理技能. 一种技能(结构化的快取+捆绑库),使AI编码代理能够对用户提供的数据集进行可辨别的因果关系分析. 它涵盖了标准的应用计量经济学工具包: 该技能包括方法选择指导、自动上载数据诊断、数据预处理核对表、共性/SE绘图表、已知的库说明、解释模板、端到端的项目工作流程、诊断核对表、结果表帮助器以及先进的应用工作流程。 - /-直接读取 SKILL.md-- 见代理/openai.yaml; 这不是一个独立的 OpenAI Agents SDK 配置 - 任何能够读取 Markdown 技能定义的框架 - GitHub: https://github.com/xiaomihu1992/econometrics-skill - SSH: [email protected]:xiaomihu1992/经济计量-技能.

概述(AI 翻译)

** 表格数据分析推论**——从OLS到RDD的17个估算器,被包装为AI编码代理技能.

中文说明

∮这是什么∮

一种技能(结构化的快取+捆绑库),使AI编码代理能够对用户提供的数据集进行可辨别的因果关系分析. 它涵盖了标准的应用计量经济学工具包:

方法家族 功能 依斯蒂安 |. 操作记录系统 控制系统 控制系统 控制系统 控制系统

  • 公用分数(PS、PSM、IPW、AIPW、IPW-RA)
  • IV/2SLS * 2 * 时间 * * 差异(静态、交错、事件研究) | Re Dis Dis Dis Dis Dis Dis Dis Dis ity ity ity ity 相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相去相相去相去相去相去相去相去相去相去相去相相相相相相相相相相相相去相去相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相相

该技能包括方法选择指导、自动上载数据诊断、数据预处理核对表、共性/SE绘图表、已知的库说明、解释模板、端到端的项目工作流程、诊断核对表、结果表帮助器以及先进的应用工作流程。

□ 支持的代理框架

  • ** 克洛德码** / ** OpenClaw**——直接读作SKILL.md
  • ** OpenAI/Codex技能UI元数据**——见`代理人/openai’.

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Econometrics Skill

Causal inference for tabular data — 17 estimators from OLS to RDD, packaged as an AI coding-agent skill.

中文说明

What this is

A skill (structured prompt + bundled library) that gives AI coding agents the ability to run defensible causal-inference analyses on user-provided datasets. It covers the standard applied-econometrics toolkit:

Method family Functions Estimand
OLS with controls 1 ATE (under CIA)
Propensity Score (PS, PSM, IPW, AIPW, IPW-RA) 7 ATE / ATT
IV / 2SLS 2 LATE
Difference-in-Differences (static, staggered, event study) 4 ATT / dynamic effects
Regression Discontinuity (sharp, fuzzy, global polynomial) 3 LATE at cutoff

The skill includes method selection guidance, automatic uploaded-data diagnostics, data preprocessing checklists, covariance/SE mapping tables, known library caveats, interpretation templates, an end-to-end project workflow, diagnostic checklists, result-table helpers, and an advanced applied workflow.

Supported agent frameworks

  • Claude Code / OpenClaw — reads SKILL.md directly
  • OpenAI/Codex skill UI metadata — see agents/openai.yaml; this is not a standalone OpenAI Agents SDK config
  • Any framework that can read a Markdown skill definition

Repository

Usage

# Clone the repository
git clone [email protected]:xiaomihu1992/econometrics-skill.git
cd econometrics-skill

# Install Python dependencies
pip install -r requirements.txt

# Run a smoke example
python examples/ols_example.py

For Claude Code or OpenClaw-style skill loading, install or copy the whole econometrics-skill/ folder into the environment’s skill directory, then invoke $econometrics in a causal-inference or uploaded-data diagnostic task. The main entrypoint is SKILL.md; detailed method signatures live in references/method_details.md.

Project structure

econometrics-skill/
├── SKILL.md                              # Main skill definition (English)
├── SKILL.zh-CN.md                        # 中文版 skill 定义
├── lib/
│   ├── econometric_algorithm.py          # 17 causal-inference functions
│   ├── data_preprocess.py                # load_table + uploaded-data diagnostics
│   └── result_tables.py                  # compact model comparison tables
├── references/
│   ├── method_selection.md               # Decision tree for picking the right estimator
│   ├── method_details.md                 # Exact signatures and minimal code per function
│   ├── interpretation.md                 # Reporting templates per method family
│   ├── applied_project_workflow.md       # End-to-end empirical project workflow
│   ├── data_preprocessing_advice.md      # Automatic dataset diagnostics and cleaning advice
在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add xiaomihu1992/econometrics-skill
新手?先看 mcpskill.org 教程 →