

changes the working directory one level up. If the directory contains spaces, we need to include quotes.Ĭd.
#SET MORE OFF STATA MAC#
If the working directory is not specified, in Mac simply typing cd sets the home directory as the current working directory. We will set the current working directory to where we work with the project before we get started. Usually for each project we will want to set up a different working directory.

To that end below are the very first steps.Ī working directory is the default directory where Stata reads and writes files. However, for any reproducible work we will want to keep track of the codes and methods we use. Type search keyword to 1) search a topic in Stata’s local keyword databases and the net materials 2) if we do not know the exact command name or 3) if we want to search for a user-written package to download.īack to top The Very First Steps to Reproducible Workįor simple tasks and for exploratory purposes one can use Stata interactively by selecting and clicking the commands from the menu bar, or typing commands line-by-line in the Command window. Type help command to look for the syntax and usage of a command. To the right, More asks Stata to continue to run the program if it pauses Break asks it to stop the current session.You can also open the Datat Editor by typing edit. If you do have edited data munually in the editor, remember to copy the codes produced in the Results window and paste it to your do-file to save a copy of what you did. Data Editor lets us actually modify the data, which is highly not recommended.You can also open the Browser by typing browse. Data Browser lets you view the data in a spreadsheet.Do-file Editor is a text editor specific to Stata, where we write the commands.
#SET MORE OFF STATA DOWNLOAD#
One of the common uses is a help system and a place to find and download the user-written packages. We wil explain the usage of a log in the next chapter.

