跳到正文
cccskills
免费在 GitHub 公开

did-reviewer

Review difference-in-differences analyses, which compare changes across treated and comparison groups. It checks pre-policy trends, event-study charts, assumption violations, placebo tests, and robustness, then organizes findings and suggested revisions into a structured report.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

双重差分(DID)实证审查Skill。做DID分析前必须检查平行趋势假设、画图可视化、报告违背情况。触发词:DID审查/双重差分检查/平行趋势/DiD reviewer/difference-in-differences

实测评分 未实测

查看安装方法

适用场景

  • Planning checks before a DID analysis
  • Reviewing a DID paper
  • Checking your own empirical results
  • Assessing a published DID study

包含的文件(1)

  • SKILL.md6.2 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

did-reviewer — 双重差分 (DID) 实证审查Skill

本 Skill 是 DID(双重差分)实证分析的强制检查清单,在执行 DID 分析前和分析后都必须按本 Skill 检查:平行趋势假设、可视化、违背报告、稳健性。不符合本 Skill 要求的 DID 分析不得发表。

适用场景

  • 做 DID 分析前设计检验方案
  • 审稿人审查 DID 论文时使用
  • 研究者自查 DID 实证结果时使用
  • 评估已发表 DID 论文的质量时使用

核心理念

DID 是识别因果的"近似实验",但前提是平行趋势假设成立。若该假设不成立,则 DID 估计量是有偏的,无论结果多么"显著"。

常见错误:

  • ❌ 只报告处理组和对照组的系数,不检验平行趋势
  • ❌ 平行趋势检验图不加置信区间
  • ❌ 不报告政策提前发生的违背情况(anticipation effects)
  • ❌ 把 DID 当万能钥匙,忽视识别假设

强制检查清单(DID 七步审查)

✅ 第一步:确认研究设计类型

类型命令说明
标准 DID(2×2)didYw 或手动回归处理组vs对照组,一次政策
多时点 DID(Staggered DID)did2/csdid不同单位政策时间不同
交错 DID(Event Study)eventstudy事件前后动态效应
连续 DID(Continuous DID)断点回归变体政策强度连续变化

✅ 第二步:平行趋势检验(Pre-trend Test)

必须执行:

  1. 计算处理组和对照组在政策前期(pre-period)的结果变量均值
  2. 检验政策前期两组的趋势是否平行
  3. 使用 事件研究图(Event Study Plot) 可视化

事件研究图规范:

X轴:相对时间(政策前第k期到政策后第k期)
Y轴:处理效应系数
必须包含:置信区间(95%CI)、政策前期系数连线、政策后期系数

判断标准:

  • 政策前期(k<0)系数不显著异于0 → 平行趋势成立 ✅
  • 政策前期系数显著异于0 → 平行趋势违背 ❌

✅ 第三步:报告违背情况(Violation Report)

若发现以下违背情况,必须如实报告:

违背类型描述处理方式
Anticipation Effects处理组在政策实施前就提前反应将政策前期效应纳入模型
Spillover Effects对照组受到处理组溢出效应排除溢出污染样本
Composition Effects处理组样本在政策后发生变化记录并分析样本变化
Parallel Trend Violation政策前期趋势不平行改用合成控制法(SCM)

报告格式:

## 平行趋势违背报告

**检验方法**:[描述使用的检验方法]
**违背情况**:[是/否存在违背]
- 若存在:描述违背类型、程度、可能影响
- 若不存在:说明检验结果

✅ 第四步:Staggered DID 特殊检验

若使用多时点 DID / 交错处理,额外检查:

Callaway & Sant'Anna (2021) 检验:

# 使用 csdid 或 did2 包
csdid(lwage, id, time, gvar, control = "nevertreated")

Borusyak et al. (2024) 检验:

# 使用 did 包
did(yname, tname, idname, gname, xformla = ~X)

判断标准:

  • 不同处理时间点的效应是否异质
  • 是否存在"好坏"处理时间混淆

✅ 第五步:安慰剂检验(Placebo Test)

必须执行:

检验类型做法判断标准
时间安慰剂假设政策提前2-3年政策前期系数应不显著
随机处理组随机抽取处理组显著结果应<5%
替换变量用同期不相关变量替代因变量应不显著

✅ 第六步:稳健性检验

至少报告以下稳健性检验:

  • 排除异常值:剔除处理组中政策前后的极端值
  • 不同控制组:替换对照组的定义
  • 不同模型设定:增减控制变量、改变函数形式
  • 样本敏感性:不同样本范围的结果一致性

✅ 第七步:异质性分析(可选但建议)

报告处理效应的异质性:

异质性维度分组方式
地区沿海vs内陆
企业规模大vs小
行业高技术vs低技术
时间政策早期vs晚期

输出标准格式

## DID 实证审查报告

**审查对象**:论文标题/研究问题
**使用的识别策略**:标准DID / 交错DID / 连续DID
**数据来源**:[数据库名称,附provenance]

### 审查结果

| 检查项 | 状态 | 说明 |
|--------|------|------|
| 平行趋势检验 | ✅/❌ | 检验方法和结果 |
| 事件研究图 | ✅/❌ | 是否规范 |
| 违背情况报告 | ✅/❌ | 是否如实报告 |
| 交错DID特殊检验 | ✅/❌ | 使用的方法 |
| 安慰剂检验 | ✅/❌ | 结果是否合理 |
| 稳健性检验 | ✅/❌ | 报告了哪些 |
| 异质性分析 | ✅/❌ | 分析内容 |

### 致命缺陷(如有)

[列出可能导致识别策略失效的致命问题]

### 建议修改

[针对性的修改建议]

调用接口

在 Claude Code 对话窗口输入:

/did-reviewer

或完整 Prompt:

按DID审查Skill检查本项目的DID分析:必须包含平行趋势检验、事件研究图、违背情况报告、交错DID特殊检验、安慰剂检验、稳健性检验。输出结构化审查报告。

与其他 Skill 的配合

  • grillme → 选题时确定使用 DID 作为识别策略
  • citation-fidelity → 引用 DID 相关方法论文献时核查准确性
  • econ-reviewer → 完整论文审查时配合使用

重要声明

  • 本 Skill 的审查标准参照**顶刊(AER, Econometrica, QJE, JPE)**要求
  • 平行趋势检验是必要条件,不是可选项
  • 发现违背情况不等于论文无效,但必须如实报告,审稿人会判断是否接受

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

a1

免费

Turn a broad research idea into clear, testable questions. Compare familiar and less conventional approaches, structure the selected question around its population and methods, and assess variables, feasibility, and potential theoretical contributions.

中文简介正在准备中。当前显示英语简介。

  • Turn a research topic into testable questions
  • Narrow an overly broad research question
  • Compare alternative research angles
brycewang-stanford/Auto-Empirical-Research-Skills47562026年10月20日 更新

a2

免费

Helps build a research framework by comparing theories, mapping relationships between variables, and deriving testable hypotheses. Explores less conventional options, examines weaknesses and competing explanations, and produces diagrams with anticipated reviewer objections.

中文简介正在准备中。当前显示英语简介。

  • Comparing theories for a research question
  • Deriving hypotheses from relationships between variables
  • Examining weaknesses and anticipated reviewer objections
brycewang-stanford/Auto-Empirical-Research-Skills47562026年10月20日 更新

a5

免费

Clarify the philosophical assumptions behind a research project and check whether they fit the proposed methods. Get a reasoned research stance, draft proposal wording, and guidance for explaining how the researcher's background and values shape the study.

中文简介正在准备中。当前显示英语简介。

  • Clarifying philosophical foundations for a research proposal
  • Explaining why the chosen research methods fit the study
  • Drafting a statement about the researcher's position
brycewang-stanford/Auto-Empirical-Research-Skills47562026年10月20日 更新

Plan and draft academic papers through specialized agent roles covering literature, arguments, citations, and review. Get chapter guidance, revision roadmaps, Traditional Chinese and English abstracts, and documents formatted as LaTeX, DOCX, PDF, or Markdown.

中文简介正在准备中。当前显示英语简介。

  • Planning a paper chapter by chapter
  • Drafting a paper from research materials
  • Turning reviewer comments into a revision roadmap
brycewang-stanford/Auto-Empirical-Research-Skills47562026年10月20日 更新

Turn a detailed outline into a philosophy or interdisciplinary manuscript. Draft chapters with repeated quality reviews, check terminology and arguments across sections, and prepare the manuscript, evaluation reports, abstract, and metadata for submission.

中文简介正在准备中。当前显示英语简介。

  • Draft a full paper from a detailed outline
  • Review argument and citation quality chapter by chapter
  • Check terminology and argument flow across chapters
brycewang-stanford/Auto-Empirical-Research-Skills47562026年10月20日 更新

Simulate academic peer review through five reviewer roles tailored to the paper's field. Receive separate critiques, an editorial decision, and a prioritized revision roadmap, or check whether a revised manuscript addresses earlier comments.

中文简介正在准备中。当前显示英语简介。

  • Review a manuscript before journal submission
  • Examine research methods and statistical validity
  • Challenge core arguments and alternative explanations
brycewang-stanford/Auto-Empirical-Research-Skills47562026年10月20日 更新

查看 brycewang-stanford 的全部技能

报告此技能的问题