Loading...
Loading...
Turns a plain-language description of a data/statistics task into correct, runnable Stata code — a .do file or command sequence, not pseudocode. Use this whenever the user asks how to do something in Stata, wants a Stata command or .do file written or fixed, mentions Stata alongside a modeling task (regression, panel data, time series, ARDL, fixed effects, diff-in-diff, matching, etc.), or wants Stata and Python working together (running Python from inside a .do file, pulling Stata's dataset into pandas, or driving Stata from a Python script via pystata/stata_setup or batch mode). Also trigger when the user pastes Stata code that errors or gives wrong-looking results and wants it debugged, or asks 'is this good Stata style' / 'what's wrong with this command'. Covers a growing library of named recipes for common econometric workflows (ARDL modeling shipped now; more added over time) that produce a ready-to-run script, not just an explanation.
npx skill4agent add sugatoray/aiskills stata-recipes.domergegenegenreferences/recipes/.doclear allset more offtssetxtsetreferences/good-bad-examples.mdreferences/good-bad-examples.md_mergemergetssetegengenreferences/python-interop.md.dosfiec| File | Read it when |
|---|---|
| Writing or reviewing any Stata code — the common footguns (merge checks, panel/time-series setup, |
| The task involves Python and Stata together, in either direction. |
| Writing a new recipe, or checking what a recipe file is expected to contain (including the |
| The task is ARDL / bounds-testing / long-run-short-run time-series modeling, or is close enough to it to use as a structural template. |
| A plain regression on a single time series — lag structure, Newey-West/HAC standard errors, autocorrelation diagnostics, avoiding spurious regression. |
| Fixed-effects vs. random-effects panel regression, the Hausman test, clustered standard errors. |
| The mechanics of |
| Deciding which unit-root test(s) to run (ADF/PP/DF-GLS vs. KPSS) and how to read them together, before committing to one test's mechanics. |
| The panel counterpart to a unit-root test — |
references/recipes/models/references/recipes/tests/references/recipes/README.md| Recipe | Covers |
|---|---|
| Autoregressive Distributed Lag modeling: lag-order selection, the |
| Single-equation regression on one time series: lag structure, Newey-West/HAC standard errors, autocorrelation/heteroskedasticity diagnostics, and avoiding spurious regression between non-stationary series. |
| Fixed-effects vs. random-effects panel regression, the Hausman test to choose between them, and clustering standard errors by panel. |
| Running |
| Choosing among ADF/Phillips-Perron/DF-GLS/KPSS and reading them together — the decision layer above any single test's mechanics. |
| Panel unit-root testing with |
webusesysuseuse "yourfile.dta", clearmeta/MAINTAINERS.mdreferences/recipes/README.md