I love Stata. I hope this guide will help you use it and love it too.
This guide is currently under construction. Places where content is missing or sections need to be rewritten are noted.
Purpose and Intended Audience
This is not intended to be a comprehensive guide to Stata -- it obviously does not cover every Stata command
and doesn't even cover every option of the commands that are included. This guide has three main audiences:
- the new Stata user. Official Stata documentation and the manuals can be overwhelming to the new
Stata user, as I have found teaching statistics classes that use Stata and helping my co-workers learn Stata.
(It took me years of using Stata before I started really using the Stata documentation, despite the fact
that I was used to reading man pages.) I first started putting this page together when I was tutoring an
intro stats class (WWS 507c at Princeton) and couldn't find a good online resource. I hope features like
first ten and next ten will help
the new Stata user quickly find what they need. With this in mind, the page for each command
is organized with the most useful options first and many examples are also included.
- fellow intermediate Stata users. I have a number of friends and work colleagues who are economics
grad students or researchers. This is a place for me to share what I have learned about Stata --
favorite commands and neat tricks,
mistakes to avoid, programs that I write
-- with these people as well as the wider internet community.
- myself. This page will also serve as an archive of everything I know how to do in Stata, rather
than trying to keep it all in my head, or always having to go back to the Stata documentation and digging through
twenty options and complicated syntax statements to find the one I always use.
Examples and Graphs
I created the examples and graphs using Stata/SE 9.2 on the dataset "nps-2005_example" and using the graphics scheme s1mono
. The dataset is subset of the dataset "nps-2005" which is
data from a household survey (National Public Services 2005) conducted
by the Institutional Reform and Capacity Building Project
in Sierra Leone in
February / March 2005. You can download the dataset here: nps_example.dta
If you are interested in actually using the full dataset or other data collected by IRCBP, see
All the examples and graphics should be fairly easily replicated, let me know if you find any discrepancies. Graphics were saved as Windows metafiles, then compressed for webpages and exported as jpegs using Microsoft Office Picture Manager.
About the Webpage
The pages were created by me handwriting the html and css code using vi (specifically,
WinVi which is an ugly but functional free vi-compatible text editor for
those of us stuck using windows.)