STATAverse

STATAverse / Code authoring

Do-file builder

Choose the files, variables and analysis. The code updates as the plan takes shape; download the finished do-file to run in Stata.

Changing this view preserves existing choices.

PlanCode preview

Project folder

The project folder is Stata’s working directory. Relative paths in the do-file start here.

Finding a path on Mac

  1. Open the project folder in Finder.
  2. Choose View → Show Path Bar.
  3. Control-click the folder in the path bar and choose Copy as Pathname. Paste the path below.
Apple’s Finder instructions

Use an existing folder. Paths are saved in this browser with the plan; the website cannot check whether a folder exists on your computer.

Data and output folders

A simple arrangement keeps the original data in a data folder, do-files in a code folder and results in an output folder, all inside the project. Create those folders in Finder or File Explorer if you use this arrangement.

course-project/
  data/    survey.csv
  code/    analysis.do
  output/

The builder also accepts full paths when files are stored elsewhere. A browser file chooser does not disclose the full local path; copy it from Finder or File Explorer.

1 of 5