did-analysis

Estimate Difference-in-Differences treatment effects with assumption and robustness checks.

24|7|Updated Nov 15, 2025
One-click install
npx skills add https://github.com/ptreezh/sscisubagent-skills --skill did-analysis-ptreezh
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: did-analysis
Source: https://github.com/ptreezh/sscisubagent-skills/tree/main/skills/did-analysis
Command: npx skills add https://github.com/ptreezh/sscisubagent-skills --skill did-analysis-ptreezh

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pandas, numpy, statsmodels, scipy, matplotlib, seaborn, scikit-learn, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill solves the problem of estimating causal treatment effects from observational or policy-driven panel data using Difference-in-Differences (DID), while providing the required design checks and statistical validation.

Core Features & Use Cases

  • Four-stage DID workflow: structures the process into experimental design, model specification, estimation, and causal interpretation, ending with policy-relevant explanations.
  • Assumption validation and credibility checks: includes parallel trend testing, event-study dynamics, placebo-style robustness checks, and multiple sensitivity analyses.
  • Integrated reporting guidance: generates coherent interpretation and policy recommendation prompts tied to the estimation outputs.
  • Use cases: policy impact evaluation, public program/health intervention studies, education reform assessment, and environmental regulation effect analysis.

Quick Start

Run the DID integrated analyzer to produce a full analysis workflow and guidance by executing: python scripts/integrated_did.py.

Frequently Asked Questions about did-analysis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I estimate causal policy effects using difference-in-differences with panel data?

Difference-in-differences requires panel data with pre- and post-treatment periods for treated and control groups. This Skill structures the estimation into experimental design, model specification, and validation, generating estimates with assumption checks for causal policy impact evaluation.

What is the best way to validate parallel trend assumptions for a DID analysis?

Validating parallel trend assumptions for DID analysis requires event-study dynamics and placebo-style robustness checks. This Skill automatically performs these diagnostic tests alongside sensitivity analyses to ensure the credibility of your causal treatment effect estimates.

Can I run robustness testing and placebo tests for econometrics policy evaluation in Python?

Yes, you can run robustness testing and placebo tests for econometrics policy evaluation in Python. Using statsmodels and scipy, this Skill executes sensitivity analyses and placebo-style checks to validate the causal inference results derived from observational panel data.

Does this DID estimation approach work for public regulation assessment and education reform evaluation?

Yes, this DID estimation approach works for public regulation assessment and education reform evaluation. It is designed for policy impact evaluation scenarios, including public program studies, health interventions, and environmental policy effect analysis using observational panel data.

How do I interpret difference-in-differences results for policy recommendations?

To interpret difference-in-differences results for policy recommendations, this Skill generates coherent interpretation guidance tied directly to estimation outputs. It structures the final stage of the workflow around causal explanation and actionable policy-relevant conclusions.

What Python dependencies do I need for difference-in-differences panel data analysis?

For difference-in-differences panel data analysis, you need pandas, numpy, statsmodels, scipy, matplotlib, seaborn, and scikit-learn. These dependencies support the deterministic estimation scripts, robustness validation, and data visualization required for the causal inference workflow.