Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Source

Linux macOS Maybe Windows

Run Stata from a Docker image. NN is the Stata version (16, 17, 18, 19). Requires a local Stata license and Docker.

stata17 nameofdofile.do

The working directory is set to that of the do file, which may not suit every project.

stataNNsh opens a shell inside the same image instead of running Stata. An Apptainer variant (stata17-apptainer) is available for HPC environments.