Using STATA in PS400
STATA is a fairly straightforward statistical package that has a wide range of statistical procedures.
It also has some useful support on line on their WebSite.
- Stata Website
- Resources for Learning Stata
- Introduction to Stata ( .pdf document)
This latter document makes a good tutorial.
This Web page providees a few basis:
First, find and execute stata (In other words, either find Stata in the Start > Program hierarchy, or double
click the STATA icon)
![]()
This brings up the Stata "desktop."

The desktop has several components
In addition, Stata has some other Windows you will need to use:
Like most windows programs, Stata uses a set of menu items from the top bar of the window. Run through them looking at the options available to you. Note especially the text label that appears if you pause the mouse over a button on the bar.
The Command Window
You run Stata by typing cpommands in the Command window. Needless to say the first command you will likely enter is one to open a data set:
For instance, to open up thenclass data set on presidential approval, typeuse "E:\WWW\DUVAL\ps400\Notes\Stata\presapp.dta", clear
Note that this command can be executed with the File > Open menu item in the Menu Bar as well
Also examine the Stata Results, Variables, and Review Windows after executing this command
The Stata Results Window
The Variables Window
The Review Window
Some Useful commands:
There is a basic subset of comands that are useful in using Stata. In general they fall into four groups:
| File commands | Data manipulation | Statistical Commands | Misc Utilities |
|
|
|
|
There is a data set available to explore these commands, and several commands listed below have examples that use
this data set.. Try using each command and seeing how Stata responds when you use it. The data set is: presapp.dta
(Stata Data set)
Stata commands are executed by typing them in the STATA Command text box and then hitting return. For instance to describe the data in the open data set, type
describe
As shown

which produces the following resuls in the STATA resulst box.

Useful Statistical Procedures
- describe
- summarize
- tabulate