Skip to content

Add 176 missing Stata commands (through Stata 19) - #126

Open
randrescastaneda wants to merge 5 commits into
kylebarron:masterfrom
randrescastaneda:add-missing-commands-stata19
Open

Add 176 missing Stata commands (through Stata 19)#126
randrescastaneda wants to merge 5 commits into
kylebarron:masterfrom
randrescastaneda:add-missing-commands-stata19

Conversation

@randrescastaneda

Copy link
Copy Markdown

Hi @kylebarron,

I added 176 missing Stata commands to the built-in commands regex in grammars/stata.cson, organized by category:

  • Estimation (75): mixed, margins, sem, gsem, fmm, npregress, ivregress, etc.
  • Panel/longitudinal (28): melogit, meprobit, xtheckman, xtvar, xtdpd, etc.
  • Causal inference (16): teffects, didregress, hdidregress, mediate, etc.
  • Lasso & ML (20): lasso, elasticnet, h2oml, dsregress, etc.
  • Data management (22): frame, frames, frget, putexcel, vl, icd10, etc.
  • Bayesian (8): bayes, bayesmh, bmaregress, etc.
  • Tables & collections (3): collect, dtable, etable
  • Survival (4): stcrreg, stintcox, stintreg, etc.

Total: 1,504 → 1,680 built-in commands

Commands sourced from Stata 19 official documentation.

Hope it helps.
Thanks.
Best,

randrescastaneda and others added 5 commits February 12, 2026 06:05
Add commands from Stata 16-19 that were missing from the built-in
commands regex, bringing the total from 1,504 to 1,680. Commands
were identified by comparing the grammar against the official Stata
documentation at stata.com.

New commands by category:
- Estimation (75): ivregress, margins, mixed, sem, gsem, fmm, npregress, etc.
- Panel/longitudinal (28): melogit, meprobit, xtheckman, xtvar, xtdpd, etc.
- Lasso & ML (20): lasso, elasticnet, h2oml, dsregress, etc.
- Causal inference (16): teffects, didregress, hdidregress, mediate, etc.
- Data management (22): frame, frames, frget, icd10, putexcel, vl, etc.
- Bayesian (8): bayes, bayesmh, bmaregress, etc.
- Survival (4): stcrreg, stintcox, stintreg, stmgintcox
- Tables & collections (3): collect, dtable, etable
- Spatial (3): spregress, spivregress, spxtregress

Also adds:
- examples/test_new_commands.do for visual verification
- scripts/ with helper tools for command extraction and comparison

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant