Table layout is dependent upon:
·
The number of categorical variables
·
Designation of categorical variables into rows and columns
·
Layering of categorical variables
Each table can have up to ten categorical variables, and you can choose
which variables will be arranged into rows or columns. You can organize
variables to emphasize a relationship, or create a more compact display
for a report.
Table layout |
Example |
One-way table
one categorical variable |
Rows: Gender |
|
Count |
Female |
35 |
Male |
56 |
All |
91 |
|
Two-way table
two categorical variables |
Rows: Gender |
Columns: Smokes |
|
No |
Yes |
All |
Female |
27 |
8 |
35 |
Male |
37 |
19 |
56 |
All |
64 |
27 |
91 |
Cell Contents: Count |
|
Multi-way table
three to ten categorical variables |
Rows: Gender/Smokes
|
Columns:
Activity
|
|
A lot |
Moderate |
Slight |
All |
Female |
|
|
|
|
No |
4 |
20 |
3 |
27 |
Yes |
1 |
6 |
1 |
8 |
Male |
|
|
|
|
No |
12 |
22 |
3 |
37 |
Yes |
4 |
13 |
2 |
19 |
All |
|
|
|
|
All |
21 |
61 |
9 |
91 |
Cell Contents: Count |
|
Layering Variables
each level of the layering variable is a separate two-way table |
Results for Activity = A lot |
Rows: Gender |
Columns: Smokes |
|
No |
Yes |
All |
Female |
4 |
1 |
5 |
Male |
12 |
4 |
16 |
All |
16 |
5 |
21 |
Cell Contents: Count |
Results for Activity = Moderate |
Rows: Gender |
Columns: Smokes |
|
No |
Yes |
All |
Female |
20 |
6 |
26 |
Male |
22 |
13 |
35 |
All |
42 |
19 |
61 |
Cell Contents: Count |
|
Note To
perform a c
test for association,
you must use a two-way table layout.