Skip to main content

Stata: Cross Tabulations- Basic

A brief introduction to Stata

What are Cross Tabulations?

Cross Tabulations, also known as contingency tables, are statistical analysis that examine the relationship between two (or more) variables. 

Note: For this example, General Social Survey 2016 data (located on "About Stata" tab) is used to produce the cross tabulation for respondent's health (health) and their confidence in medicine (conmedic). 

Steps to Cross Tabulations: Point and Click

1. Go to Statistics > Summaries, tables, and tests > Frequency tables > Two-way table with measures of association

2. Under Row Variable: either (a) type the variable name or (b) select the variable name from the drop down menu.

3. Under Column Variable: either (a) type the variable name or (b) select the variable name from the drop down menu.

4. Select "OK"

Steps to Cross Tabulations: Code

1. In the Command box type in the following code

tab variablename1 variablename2

Example: tab health conmedic

 

2. Hit Enter key