Stata Interface
Graphical User Interface
The five main windows in Stata are Review, Results, Variables, Properties and Command.
- To set the windows to the way we prefer, go to Preferences.
- To reveal a hidden window, go to the Window menu and select the window’s name.
The Review window shows the history of commands, both the successful ones and the errors indicated by “_rc”, the error codes.
- Click Command or _rc to sort commands by alphabetical order.
- Use Page Up and Page Down keys to select, copy, run, and export the commands.
The Results window displays the past commands and the textual results.
- Click the search icon, the magnifier, to find texts in the Results window.
The Variables window lists the variables’ names and their labels.
- Select a variable and its other properties will be reflected in the Properties window simultaneously.
The Properties window, by definition, summarizes the various properties of a variable.
- Click the lock icon to unlock the ability to change the variable properties directly.
- Use the arrows to the right of the lock icon to select variables in the Variables window.
The Toolbar on top of the Results window gives us easy access to several features, most of which are self-explanatory.
- In the middle of the bar, Log allows us to record all the outputs we produced in a log file. We wil explain the usage of a log in the next chapter.
- Viewer does many things. One of the common uses is a help system and a place to find and download the user-written packages. The Stata manual details its other uses.
- Do-file Editor is a text editor specific to Stata, where we write the commands.
- Data Browser lets you view the data in a spreadsheet. You can also open the Browser by typing browse.
- Data Editor lets us actually modify the data, which is highly not recommended. 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. You can also open the Datat Editor by typing edit.
- To the right, More asks Stata to continue to run the program if it pauses; Break asks it to stop the current session.
Getting Help
Type help command to look for the syntax and usage of a command.
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.