University of Southern California

ITS Information Technology Services

A division of the Office of the Chief Information Officer

Slightly Less Simple Stata Reports

The output below is slightly less simple than the previous example. The first ten records are listed, with only the variables specified included. Steps in producing this report are given below.

List first 10 records output

Selecting Specific Variables

The default Stata listing includes all variables. A very common modification of the standard report is a request for specific variables. From the Stata menu, select Data then Describe Data and, from the next drop-down menu, select List Data. In the pop-up window, type the list of variables to print.In the example below, a report is requested listing only the values for state, population, median age and date.

(NOTE: Remember that Stata is case-sensitive. If your variable is named "State", typing "state" will produce an error.)

List variables

Selecting a Range of Records

Often, a researcher will be interested in printing out only the first 10, 25 or 100 records from a file to visually inspect the data for correct entry, potential trends, formats, etc. To select a specific number of records, click the by/if/in tab in the pop-up window. Check the box next to Use a range of observations. Select the range of records desired. Click OK.

List first 10 records

Last updated:
December 03, 2008

Stata

The use of all USC computing resources is governed by the USC Computing Policies.