원클릭으로
run-pipeline
// Execute the full Stata pipeline via dofiles/00_master.do. Runs every stage in dependency order, aborts on first error, prints stage timings, and reports final output tree.
// Execute the full Stata pipeline via dofiles/00_master.do. Runs every stage in dependency order, aborts on first error, prints stage timings, and reports final output tree.
Combine saved Stata estimates into publication-ready tables via esttab. Produces both .tex (for paper) and .csv (for audit) with consistent formatting.
Simulate a fresh-clone reproduction of the entire pipeline and diff the new outputs against the committed ones. Catches drift before paper submission or release.
End-to-end Stata analysis workflow — load, explore, clean, estimate, and produce publication-ready tables and figures with full logging.
Run a holistic narrative review on a Quarto report or Markdown document. Checks reader prerequisites, worked examples, notation clarity, structural arc, and pacing.
Render a Quarto report (Stata engine) to HTML / PDF / DOCX. Performs freshness check on included tables/figures, verifies the Stata Quarto engine, and validates numerical claims before rendering.
Apply the replication protocol to a paper. Inventory the replication package, record gold-standard targets with tolerances, translate the analysis to this project's Stata pipeline, and report a tolerance-by-tolerance comparison.
| name | run-pipeline |
| description | Execute the full Stata pipeline via dofiles/00_master.do. Runs every stage in dependency order, aborts on first error, prints stage timings, and reports final output tree. |
| disable-model-invocation | true |
| argument-hint | |
| allowed-tools | ["Bash","Read","Grep","Glob"] |
Execute dofiles/00_master.do end-to-end via scripts/run_pipeline.sh. This is the canonical "rebuild everything" command.
Pre-flight checks:
dofiles/00_master.do existsdata/raw/ is non-empty (otherwise the cleaning stage will fail with no inputs)which stata or which stata-mp)Run the pipeline:
bash scripts/run_pipeline.sh
The wrapper:
dofiles/00_master.do in batch modedo dofiles/XX/... call completesInspect the environment snapshot: logs/00_master_environment.log should contain Stata version, flavor, OS, and which of key user-written commands.
Validate stage logs:
For each logs/<stage>_*.log produced, grep for errors:
for L in logs/*.log; do
N=$(grep -c -E "^r\(\d+\);|invalid syntax|not found" "$L")
[ "$N" -gt 0 ] && echo "$L: $N error matches"
done
Verify expected outputs:
output/tables/ and output/figures/ populatedreports/*.qmd exist and are newer than the producing do-files (freshness check from single-source-of-truth)Report:
/run-pipeline
→ Builds the entire pipeline; reports timing + outputs.
After data refresh: /run-pipeline then /render-report reports/analysis_report.qmd.
reghdfe not found — run ssc install reghdfe ftools, replace once. Or run dofiles/00_master.do with the INSTALL_DEPS = 1 flag (see master.do header)./run-stata troubleshooting; the same command -v chain applies.chmod +x scripts/run_pipeline.sh.output/. Commit any in-progress work before running./run-stata instead.