From ai4ss-skills
Provides deep expertise in difference-in-differences and panel causal designs. Activates on terms like 'DID', 'event study', 'parallel trends', 'staggered treatment'.
How this skill is triggered — by the user, by Claude, or both
Slash command
/ai4ss-skills:did-expertThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Evaluate the DID-specific methodological questions raised by a concrete proposed or implemented study.
Evaluate the DID-specific methodological questions raised by a concrete proposed or implemented study. The analysis begins with the intervention, exposure process, estimand, and identifying comparisons; estimator choice follows from those features.
Set out the assessment in a DID Methods Memo covering:
Reconstruct who becomes treated, when, why, with what intensity, whether treatment is absorbing, and which political or administrative process generates timing. Inspect policy text, implementation rules, institutional history, and contemporaneous events. A treatment indicator is not a design.
State the potential-outcome contrast of interest: group-time ATT, event-time effect, policy-relevant aggregate, dose response, switch-on/off effect, or another justified quantity. Identify which cohorts, periods, and control units contribute. Decide whether never-treated, not-yet-treated, or another group can plausibly supply the counterfactual.
Plot raw outcomes and treatment timing; examine cohort sizes, observation windows, gaps, attrition, support for covariates, and composition at each event time. Diagnose whether long-run effects are identified only by early cohorts or a changing sample.
Parallel trends is a claim about untreated potential outcomes, not a passing pre-trend test. Use theory, institutional facts, raw patterns, covariate behavior, alternative outcomes, and policy timing to assess its plausibility. Examine anticipation, spillovers, endogenous timing, simultaneous reforms, and differential measurement.
Use simple DID or TWFE when their assumptions and comparison structure fit. With staggered adoption and heterogeneous effects, prefer methods that identify transparent group-time or cohort-specific effects and aggregate them deliberately. For non-absorbing, continuous, repeated-cross-section, imbalanced, or synthetic-comparison settings, choose methods whose estimands and assumptions match those features.
Do not select an estimator because its package is fashionable. Explain how each choice changes the target, comparison weights, covariate adjustment, or sample.
Use event studies as descriptive and diagnostic evidence, not proof of parallel trends. Consider pre-treatment equivalence or sensitivity approaches, placebo outcomes and dates, alternative control groups or windows, leave-one-cohort or leave-one-cluster checks, treatment-timing falsification, randomization inference when assignment supports it, and design-appropriate sensitivity bounds.
Match uncertainty to the assignment and dependence structure. Examine the number, size, and leverage of clusters rather than relying on a mechanical threshold. Address multiple outcomes or subgroup searches when they affect interpretation.
When estimates differ, trace the difference to target parameters, comparison sets, weights, cohorts, time horizons, samples, nuisance models, or assumptions. Do not label agreement as robustness or disagreement as failure without explaining what each estimator learns.
Recommend a concrete change to treatment definition, sample, event window, control group, aggregation, estimator, diagnostic plan, or causal claim. State what remains unidentified.
Keep implementation subordinate to the estimand, comparisons, and assumptions. Follow the project's existing R practice and consult current documentation for the selected estimator; software choice cannot resolve an unidentified or poorly supported comparison.
references/pre-analysis.md — DID-specific data and treatment inspection.references/estimators.md — estimator families and their assumptions.references/diagnostics.md — diagnostics, falsification, sensitivity, and inference.references/implementation.md — R implementation patterns after the design is chosen.Guides through complete difference-in-differences analysis: setup, parallel trends testing, staggered rollout handling, robustness checks, and plain-language interpretation.
Selects and stress-tests causal identification strategies for empirical economics manuscripts — DiD (including staggered), IV, RDD, synthetic control, or shift-share. Use before writing the introduction or results.
Stress-tests causal identification designs (DiD, IV, RDD, experiment) for EER manuscripts, ensuring credibility before finalizing exhibits.
npx claudepluginhub siyaozheng/ai4ss-skills --plugin ai4ss-skills