next up previous
Next: About this document Up: No Title Previous: Saving and Printing Graphs

Command Summary

Here are some commands that you may find useful (this is by no means an exhaustive list of all Stata commands):

anova general ANOVA, ANCOVA, or regression
by repeat operation for categories of a variable
ci confidence intervals for means
clear clears previous dataset out of memory
correlate correlation between variables
describe briefly describes the data (# of obs, variable names, etc.)
drop eliminate variables from memory
exit leave Stata
generate creates new variables (e.g. generate years = close - start)
graph general graphing command (this command has many options)
help online help
if lets you select a subset of observations (e.g. list if radius >= 3000)
list lists the whole dataset in memory (you can also list only certain variables)
log save or print Stata ouput (except graphs)
lookup keyword search of commands, often precursor to help

regress regression
replace lets you change individual values of a variable
save saves data and labels in a Stata-format dataset
sort sorts observations from smallest to largest
summarize produces summary statistics (# obs, mean, sd, min, max) (has a detail option)
test conducts various hypothesis tests (refers back to most recent model fit
ttest one and two-sample t-tests
use retrieve previously saved Stata dataset


next up previous
Next: About this document Up: No Title Previous: Saving and Printing Graphs

Jerome.P.Reiter
Sun Sep 19 12:45:39 EDT 1999