University of Southern California

ITS Information Technology Services

A division of the Office of the Chief Information Officer

Frequency Distributions Using Stata

The first step in categorical data analysis is a simple frequency distribution. As with other descriptive statistics, you begin with the Statistics window, then select Summaries, tables and tests as shown below. From the new drop-down menu on the right, select Tables.

summary1.jpg

Yet another drop-down menu will appear, from this menu, select One-way tables. The pop-up window below will appear. Use the drop down menu to select the variable for which you are requesting a frequency distribution. In the example below, the variable price is entered. To request additional output, you can also check the various options, e.g., displaying numeric codes instead of value labels, treating missing data like all other values or creating a bar chart.

One-way table

Obtaining frequency distributions for several variables

Obtaining frequency distributions for several variables is almost identical to getting the table for a single variable. Begin as above, by selecting Statistics then Summaries, tables and tests and then Tables. This time, select Multiple one-way tables.

Tables menu

In the pop-up window that appears, either type the names of your variables in the box labeled categorical variables or select the names from a list by pulling down on the blue arrow next to the box. Click the OK button.

Most frequently asked question: "The box says categorical variables. My variables are numeric. Can I still use this feature to request a frequency distribution?"

Answer: "Yes."

Last updated:
October 28, 2008

Stata

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