did-event-study
调用权威软件包并强制诊断套件,便于产出规范可重复的实证结果。
依赖 R/Stata 及特定包,需在安装相应统计环境下使用。
按 Sant'Anna 等标准化流程运行分期/多期 DiD 与事件研究并输出诊断与稳健性检验。
按 Sant'Anna 的实践标准把分期/多期 DiD(event-study)分析流程跑通:调用权威 R/Stata 包、用双重稳健默认、做必需的诊断与稳健性检验,最后给出可评分的可信度结论。适合手头有面板数据且处理时点不一致的政策或冲击评估场景。它不重写估计器,只做编排、复现与验证,输出规范化的诊断报告。
▸ 展开 SKILL.md 英文原文
Run a staggered difference-in-differences / event-study analysis to the Sant'Anna practitioner standard — drives the canonical packages (R `did`/`DRDID`/`didFF`/`contdid`; Stata `csdid`/`drdid`), enforces the doubly-robust default, a mandatory diagnostic + sensitivity suite, uniform-band inference, replicate-and-verify-against-source discipline, and ends in a graded credibility verdict. Use when user says "run a DiD", "event study", "staggered adoption", "Callaway Sant'Anna", "att_gt", "csdid", "did with multiple periods", or points at panel data with a treatment-timing variable. NEVER reimplements an estimator.
帮我安装这个 skill:https://raw.githubusercontent.com/pedrohcgs/claude-code-my-workflow/main/.claude/skills/did-event-study/SKILL.mdcurl -fsSL "https://raw.githubusercontent.com/pedrohcgs/claude-code-my-workflow/main/.claude/skills/did-event-study/SKILL.md"# /did-event-study — DiD / event study, Sant'Anna practitioner standard This is a **thin orchestrator over the canonical packages** — it never reimplements an estimator. It walks the practitioner workflow from *Difference-in-Differences with Multiple Time Periods* (Callaway & Sant'Anna 2021), the *Doubly Robust DiD* estimators (Sant'Anna & Zhao 2020), and the *"What's Trending in DiD?"* synthesis (Roth, Sant'Anna, Bilinski & Poe 2023), and it follows the **replicate-and-verify-against-source** discipline. > **Actor → Critic.** The skill is the *Actor*: it runs your packages and the diagnostics. It then puts on the *Critic* hat for **Phase 8 — a graded credibility verdict**, never a binary