Agent skill · Documentation

er-mechanism

Use when designing or writing the mechanism analysis for an Economic-Research empirical manuscript. Enforces the post-江艇(2022) paradigm — estimate D→M with the main identification strategy and argue M→Y from theory, instead of running mediation step-wise / Sobel tests.

brycew6m878★ · +32/wk · 1 repos on radarProfile →
claude-codeMIT
Install
npx skills add brycewang-stanford/Awesome-Journal-Skills --skill er-mechanism --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 3 KB
Bundled scripts: none
Path: Economic-Research-Journal-Skills/skills/er-mechanism/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 909 · +31 this week
Language: Stata
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 机制分析(er-mechanism) 机制分析是《经济研究》实证文章的近乎必备环节。但**它的方法论近年发生了根本转向**——本 skill 按转向后的口径写。 ## 触发时机 - 主回归结果已稳健,但缺机制分析 - 机制只有"我们认为可能是因为……"的口头说明 - 审稿人问"为什么会有这个效应?" - 你正打算(或已经)跑中介效应三步法 / Sobel 检验 —— **请先读下一节** ## ⚠ 范式转向:不要再用中介效应逐步法 **江艇(2022)《因果推断经验研究中的中介效应与调节效应》,《中国工业经济》第 5 期,第 100–120 页**——已成为四大刊(《经济研究》《管理世界》《中国工业经济》《经济学(季刊)》)机制分析的准规范。核心结论: - **建议停止使用中介效应逐步法(Baron-Kenny 三步法)与 Sobel 检验。** 在因果框架下,处理 D 可借识别策略视为外生,但**中介变量 M 几乎从不是随机的**。 - 在 Y 对 (D, M) 的回归里,M 的系数(即"M→Y 那一步")混入了 M 与 Y 之间的遗漏变量偏误和反向因果,**不具因果含义**;据此分解出的"中介效应""间接效应占比"也不可信。 - 三步法还隐含"无未观测的处理后混杂"这一**极强且不可检验**的假设。 > 一句话:别用一个内生回归去"证明"机制。 ## 正确做法:D→M + 理论论证 M→Y 机制检验 = 两件事: 1. **实证上,只估计 D→M**:把机制变量 M 当作被解释变量,**沿用与主回归 D→Y 完全相同的识别策略**(同样的 DID / IV / RDD、同样的固定效应与聚类)。这一环是被可信识别的因果关系——"处理确实改变了机制变量"。 2. **理论上,论证 M→Y**:用经济学理论、制度背景、已有文献说明"M 为什么会影响 Y"。这一环**不跑回归**,靠论证。 配套代码:`resources/code/stata/07_mechanism.do`。 ### 机制写作三段式 ``` 本文进一步从[机制名]角度提供证据。 第一,理论上,[机制变量 M] 应通过[路径]影响[结果 Y]——[引理论/制度/文献,著者-出版年制,如(江艇,2022)]。 第二,实证上,本文以 [M] 为被解释变量,沿用基准识别策略估计 D→M,结果见表 X: 处理使 [M] [上升/下降] [量级],与上述理论预期一致。 第三,结合 [理论/文献],[M] 的变化进而通过[路径]作用于 [Y],构成本文主效应的机制。 ``` 注意第三步只做**逻辑闭合**,不报告"间接效应=0.0X、占比 Y%"这类来自中介分解的数字。 ## 机制设计三原则 1. **理论指引**:机制变量必须能挂上某支理论,不是凭空想。 2. **时间一致**:M 的测量时点在处理

What's inside
Steps it walks through
  1. 触发时机
  2. ⚠ 范式转向:不要再用中介效应逐步法
  3. 正确做法:D→M + 理论论证 M→Y
  4. 机制写作三段式
  5. 机制设计三原则
  6. 用异质性侧证机制(推荐替代"中介"的思路)
  7. 范文对标(确属《经济研究》)
  8. 必查清单
  9. 反模式
  10. 输出格式
More from Awesome-Journal-Skills
All skills →
About this skill
What does the er-mechanism skill do?

Use when designing or writing the mechanism analysis for an Economic-Research empirical manuscript. Enforces the post-江艇(2022) paradigm — estimate D→M with the main identification strategy and argue M→Y from theory, instead of running mediation step-wise / Sobel tests.

How do I install it?

Run `npx skills add brycewang-stanford/Awesome-Journal-Skills --skill er-mechanism --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From brycewang-stanford/Awesome-Journal-Skills, a repository with 909 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going