Skip to Main Content

Statistical Software: Stata Koujue

This guide contains resources to assist faculty, researchers, staff, and students in learning statistical software, such as R, Python, SAS, Stata, SPSS

Quick Tips

Stata commands are case-sensitive.

nonew at the end of the help command is used to instruct it not to open a new window.

findit searches the Internet as well as your local machine and shows results in the Viewer.

Type sysuse dir to see a list of the files shipped with Stata.

clean is an option used to omit the borders on the listing for list.

exit, clear tells Stata to quit no matter what.

capture tells Stata to run the command that follows and ignore any errors.

clear deletes the data currently held in memory and any value labels you might have.

Write all commands in a do file to ensure research reproducibility.

The basic missing value for numeric variables is represented by a dot, while for string variables by "", the empty string.

quietly is used to suppress the output of summarize.

Always use gen or make a copy of the original variable before recoding it.

Web Resources

The books of treasures

Stata Tutorials - Introduction to Stata

Stata Tutorials - "log" and "do" files

Stata Tutorials - Scatterplots in Stata

Stata Workshops/Webinars

Stata Sessions


Profile Photo
Jianjun Hua
Dartmouth College

Hanover NH 03755


This guide has a user friendly interface.

Strongly agree: 10 votes (55.56%)
Agree: 4 votes (22.22%)
Neutral: 1 votes (5.56%)
Disagree: 1 votes (5.56%)
Strongly disagree: 2 votes (11.11%)
Total Votes: 18

Post-Workshop Survey