Epidemiology & Technology

Stata Do File Organization

Locating DO files in a folder fast !

Stata DO files are essential for reproducible research data analysis.
Over years, I have developed my preferred method of DO file organization.

File Naming – “## – Description.do”

The ## is the numbering of the files to facilitate automatic sorting of the files. First file often for me is “00 – data import.do” followed by “01 – data management.do” and then “03 – results text.do”, “04 – table 1.do”, and so on.

Need to add a file in between two DO files ?
Name it “##.# – newfile.do”
This will preserve sorting.

Related posts