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.
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.)
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.
Last updated:
December 03, 2008