Data used for input to the Tables procedures can be arranged in four different ways in your worksheet:
Raw data - one row for each observation:
C1= gender, C2 = politics |
Contingency table - each cell contains counts:
C1= males, C2 = females Rows 1-3 represent the three levels for politics | ||||||||||||||||||||||||||||||||||||||||
Frequency data - each row represents a unique combination of group codes:
C1= gender, C2 = politics |
Indicator variables - one row for each observation
C1 = 1 if male, 0 if female C2 = 1 if female, 0 if male C3 = 1 if Democrat, 0 = otherwise C4 = 1 if Republican, 0 = otherwise C5 = 1 if Other, 0 = otherwise |
To create: