11.1.2 - Two-Way Contingency Table

11.1.2 - Two-Way Contingency Table

Recall from Lesson 2.1.2 that a two-way contingency table is a display of counts for two categorical variables in which the rows represented one variable and the columns represent a second variable. The starting point for analyzing the relationship between two categorical variables is to create a two-way contingency table. When one variable is obviously the explanatory variable, the convention is to use the explanatory variable to define the rows and the response variable to define the columns; this is not a hard and fast rule though.

Minitab®  – Constructing a Two-Way Contingency Table

  1. Open the data set: class_survey.mpx
  2. Select Stat > Tables > Cross Tabulation and Chi-square
  3. Select Raw data (categorical variable) from the drop down menu
  4. Double click the variable Smoke Cigarettes in the box on the left to insert the variable into the Rows box
  5. Double click the variable Biological Sex in the box on the left to insert the variable into the Columns box
  6. Click OK

This should result in the two-way table below:

Rows: Smokes Cigaretes | Columns: Biological Sex
  Female Male All
No 120 89 209
Yes 7 10 17
All 127 99 226
Cell Contents: Count

Legend
[1]Link
Has Tooltip/Popover
 Toggleable Visibility