/stata-plan
Read the selected empirical design, wiki/variables/*.md, wiki/datasets/*.md, wiki/models/*.md, robustness and heterogeneity pages, plus local .do, .dta, .xlsx, dictionaries, and READMEs.
By default, create wiki/outputs/stata-plan-{slug}-{YYYY-MM-DD}.md with:
- Input data
- Merge keys and merge order
- Sample filters
- Variable construction
- Winsorization and missing-value handling
- Descriptive statistics
- Correlations
- Baseline regressions
- Mechanism tests
- Heterogeneity tests
- Robustness checks
- Table exports
- Verification checklist
Only when the user passes --write-do, also create wiki/outputs/stata-plan-{slug}-{YYYY-MM-DD}.do.
Constraints:
- Never overwrite existing user
.dofiles. - Do not invent final variable names; use placeholders and mark
needs confirmationwhen names are uncertain. - Include checks for sample size, merge results, missingness, and variable distributions.