First-pass analysis on a panel dataset
When to use: You got a new dataset; you want to see the basic patterns before designing identification.
Prerequisites
- Stata 17+ licensed and on PATH — Stata's installer; verify with
stata-mp -h - Data file accessible — Set STATA_MCP_CWD to the project root
Flow
-
InspectUse stata-mcp. Load panel.dta. Summarize all numeric variables and check for missingness.✓ Copied→ Summary table; missing-pattern diagnosis
-
PlotPlot the dependent variable over time, grouped by treatment status.✓ Copied→ Twoway plot exported
-
First modelRun a fixed-effects regression: outcome on treatment, controls FE_unit FE_time. Cluster SEs by unit. Interpret.✓ Copied→ Coefficient table + interpretation in plain language
Outcome: Defensible first-pass analysis in an hour instead of an afternoon.
Pitfalls
- FE model identifies off within-unit variation only — Claude will flag this; consider DiD if treatment is staggered