Skip to content

Instantly share code, notes, and snippets.

View dianagold's full-sized avatar

Diana Goldemberg dianagold

View GitHub Profile
@dianagold
dianagold / README.md
Last active September 30, 2020 12:27
Automatically set project path for multiple collaborators in Stata

Automatically set project path for multiple collaborators in Stata

Say you have a project in Stata with multiple collaborators, each of them with their local copy in a different path. This often happens when if you collaborate via Git or a cloud storage platform. Everyone will need to execute the same master run - but unlike Python or R scripts, Stata do-files do not "know" their location.

Let's see a few solutions on how to set the project path as a global at the beginning of your master do-file.

Manual method