What problem does it solve?
This Skill helps you avoid Stata syntax mistakes and silent econometric bugs when writing, debugging, or explaining Stata .do files so your workflow is reproducible and correct.
Core Features & Use Cases
- Do-file writing and debugging: Covers core Stata patterns for data import, cleaning, regression, and plotting, plus common failure modes.
- Econometrics and applied workflows: Guides correct use of linear models, limited dependent variable models, panel methods, causal inference workflows, and diagnostics.
- Package-aware guidance: Includes practical documentation for many widely used community packages (e.g., reghdfe, estout/esttab, csdid, did_multiplegt, rdrobust, coefplot).
- Safety/quality guardrails: Emphasizes critical gotchas (missing values behavior, macro syntax, bysort requirements, merge diagnostics, factor-variable conventions, etc.) to prevent wrong results.
Quick Start
Tell the AI: "I need you to write and explain Stata code to load my dataset, clean missing values correctly, run an OLS/IV or a DiD model as appropriate, export regression tables and graphs into output files, and include detailed Chinese comments so I can reproduce everything."