| Feature Category | Stata 17 | Stata 18 | |---|---|---| | | Basic Bayesian regression | BMA (bmaregress), Bayesian quantile regression, Bayesian variable selection | | Causal inference | teffects, didregress | mediate (causal mediation), hdidregress (heterogeneous DID) | | Survival analysis | stintcox (interval-censored Cox) | stintcox with TVCs, lasso cox, estat gofplot | | Meta-analysis | Basic meta-analysis (metan) | Multilevel meta-analysis, meta-analysis for prevalence | | Reporting | table, collect | dtable (Table 1), enhanced putdocx/putpdf | | Data management | Frames | Framesets, alias variables across frames | | Graphics | Standard schemes | All-new scheme with colorvar() | | Python integration | Python integration (from Stata), pystata (preliminary) | Mature pystata with full Jupyter support, enhanced sfi |
Supports highly sophisticated priors, including the heavy-tailed half-Cauchy prior (optimal for non-negative parameters like variances) and the skewed Rayleigh prior .
Stata 18 introduces powerful features designed to streamline data analysis, reporting, and workflow efficiency. The release focuses heavily on , specifically through the new dtable command, and enhances data handling with alias variables and framesets . 1. Key New Features in Stata 18
Researchers conducting meta-analyses often face the challenge of effect sizes nested within multiple grouping levels (e.g., studies nested within labs, or effect sizes nested within papers). Stata 18‘s multilevel meta-analysis feature accounts for this dependence when combining results, yielding more accurate standard errors and confidence intervals. Stata 18
Provides faster execution routines for normal linear models using Laplace priors via localized sub-options ( gibbs ).
Perhaps the most exciting data management innovation in Stata 18 is . With fralias add , users can access variables in other frames as if they were part of the current frame, with very little memory overhead. This eliminates the need for frequent merges and joins when working with linked datasets.
Stata 18, released in April 2023, represents a major milestone in statistical computing. This article provides a comprehensive overview of Stata 18, including its new features, enhancements from previous versions, and practical applications for researchers and data scientists. | Feature Category | Stata 17 | Stata
While Lasso was introduced in Stata 16, Stata 18 significantly expands its utility for prediction and inference.
Improved auto-completion, bracket matching, and integrated navigation bars for complex scripts.
Features added in newer versions are not backward compatible with older Stata installations. Users sharing do-files should be mindful of the version requirements for specific commands. Provides faster execution routines for normal linear models
Frames were introduced in Stata 16, allowing users to work with multiple datasets simultaneously in a single Stata session. Stata 18 substantially advanced this capability with , which allow users to bundle, save to file, and load into memory a set of related frames holding datasets. As one user noted on Twitter, “The fact that #Stata18 can save sets of linked data frames (using the new .dtas format) is also a nice touch which will massively speed up big workflows”.
In this long-form article, we will dissect every major feature of Stata 18, from its revolutionary plogit command to its enhanced Do-file Editor. Whether you are a graduate student running your first regression or a seasoned biostatistician handling large panel datasets, here is everything you need to know about Stata 18.