Skip to main content

SPSS: Cross Tabulations- Basic

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 SPSS" 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 Analyze > Descriptive Statistics > Crosstabs

2. Find, click on, and move the variable you want in the column and move the variables you want in the row. This can be done either by clicking the over arrow OR hit Enter

3. Select "OK"

Steps to Cross Tabulations: Code

1. On the Syntax page type in the following code

CROSSTABS
  /TABLES=variable_name1 BY variable_name2
  /FORMAT=AVALUE TABLES
  /CELLS=COUNT 
  /COUNT ROUND CELL

Example:

CROSSTABS
  /TABLES=health BY conmedic
  /FORMAT=AVALUE TABLES
  /CELLS=COUNT 
  /COUNT ROUND CELL

2. Highlight the code you want to run and then hit the Green Play Button