You would like to classify the individuals in your study by gender, smoking status, and activity level in a three-way table. To present the same information in a layered two-way table, see Example of cross tabulation with three categorical variables.
1 Open the worksheet EXH_TABL.MTW. If you have not already done so, set the value order for the variable Activity.
2 Choose Stat > Tables > Cross Tabulation and Chi-Square.
3 Choose Raw data (categorical variables).
4 In Rows, enter Gender. In Columns, enter Activity Smokes.
5 Under Display, check Counts. Click OK.
Session window output
Tabulated Statistics: Gender, Activity, Smokes
Rows: Gender Columns: Activity / Smokes
Slight Moderate A lot All No Yes No Yes No Yes All
Female 3 1 20 6 4 1 35 Male 3 2 22 13 12 4 56 All 6 3 42 19 16 5 91
Cell Contents: Count |
In this layout, the row variable is Gender, the uppermost column variable is Activity, and innermost column variable is Smokes. It may be easier for you to compare your data in a different layout. You can change your table layout by designating variables to be across rows, down columns, or as layers.