Stata FAQ
Stata FAQ
Getting Started
Downloading Stata using AppsAnywhere
Where is my home directory?
Stata needs a folder to work in, and you need to tell it where to look. This can be achieved by the cd
command (change directory)
cd /Users/emilybeam/Dropbox/EC200
, where “/Users/emilybeam/Dropbox/EC200” is the file path
But how do you know what your file path is? As our computers have gotten shinier, it’s become harder to figure out.
PC
General PC instructions from wikihow
Basically…
- Right click on the folder you put all your stuff in, and click on “properties.”
- Then you’ll see something called “Location: C:/Users/Emma/Documents/Folder” or something like that.
- You’d then change directory in Stata by entering
“cd “C:/Users/Emma/Documents/Folder”
Mac
It’s a very similar process!
- Right click on the folder you put all your stuff in, and click on “info.”
- You’ll see something like “Where: iCloud Drive > Documents > Student > Folder,” with tiny black arrows. That will not look like a file path.
- But, if you select it, copy it and paste it, it will paste as “/Users/Student/Documents/Folder”
- You’d then change directory in Stata by entering
cd “/Users/Student/Documents/Folder”
OR
- Right click on the folder you put all your stuff in, so a menu pops up
- Press the option key, and see how the menu now has an option that says “copy NAME as path”. Select that option
- Paste it in Stata, so you enter
cd "/Users/Student/Documents/Folder"