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 STATA, SAS, R, 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

This is a comprehensive Introduction-to-Stata tutorial used in a Dartmouth computer lab. 

Stata Sessions

STATS HOME

Jianjun Hua's picture
Jianjun Hua
Contact:
Dartmouth College

Hanover NH 03755


Questionnaire

This guide has a user friendly interface.

Questionnaire
Strongly agree: 6 votes (50%)
Agree: 3 votes (25%)
Neutral: 1 votes (8.33%)
Disagree: 1 votes (8.33%)
Strongly disagree: 1 votes (8.33%)
Total Votes: 12

Post-Workshop Survey