Stata 18 【FRESH × HANDBOOK】

Stata 18 includes numerous smaller updates that significantly improve the user experience (QoL):


| Feature Category | Stata 17 Highlights | Stata 18 Highlights | | :--- | :--- | :--- | | Causal Inference | Basic Treatment Effects, Lasso | Panel Data Treatment Effects (eteffects), Heterogeneous DID (hetdid) | | Survival Analysis | Multilevel Survival Models | Interval-Censored Cox (stintcox) | | Output | collect command introduced | Robust tables command for publication tables | | Meta-Analysis | Network Meta-Analysis | Dose-Response Meta-Analysis, Trim-and-Fill | | Visualization | Customizable tables (collect) | Streamplots, Graph Editor macro recording | | Hardware | Apple Silicon via Rosetta | Native Apple Silicon Support |


Stata 18 is available for Windows (including ARM), macOS (Apple Silicon native), and Linux. The graphical interface and command syntax are identical across platforms, facilitating collaboration. Stata 18

Stata 18 introduces teffects ipw for panel data, allowing for estimation using inverse-probability weights. This is crucial for balancing covariates across treatment and control groups in longitudinal studies.


Stata’s built-in Do-file Editor has been modernized to compete with RStudio and VS Code. | Feature Category | Stata 17 Highlights |

Stata 18 also introduces Project (.stprj) files, which bundle all datasets, do-files, logs, and outputs into a single workspace, making collaboration far easier.


* At top of every do-file
version 18
clear all
set more off
set linesize 80
* Set working directory relative to do-file (requires do-file location)
cd `c(pwd)'

Stata 18 updates the didregress and xtdidregress commands. Stata 18 is available for Windows (including ARM),

Panel data remains Stata’s bread and butter. Stata 18 polishes existing tools while adding new estimators.