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).
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. Within the box Test Statistics: select pearson's chi-squared
5. Within the box Cell Contents: select Within-column relative frequencies (column percents) and Within-row relative frequencies (row percents).
6. Select "OK"
Additional Options: You can add and remove statistical analysis within Steps 4-5. Examples below:
1. In the Command box type in the following code
tab variablename1 variablename2, row col chi
Example: tab health conmedic, row col chi
2. Hit Enter key
Additional Code Options: You can add and remove statistical analysis at the end of the code. Examples below.