Integer mode (CROSSTABS command)
- In integer mode, variables specified on
TABLESmust first be named onVARIABLES. - The keywords
TOandALLcan be specified in any dimension. In integer mode,TOandALLrefer to the position and subset of variables specified on theVARIABLESsubcommand, not to the variables in the active dataset.
Example
CROSSTABS VARIABLES=FEAR (1,2) MOBILE16 (1,3)
/TABLES=FEAR BY MOBILE16.
-
VARIABLESnames two variables, FEAR and MOBILE16. Values 1 and 2 for FEAR are used in the tables, and values 1, 2, and 3 are used for the variable MOBILE16. -
TABLESspecifies a Crosstabulation table with two rows (values 1 and 2 for FEAR) and three columns (values 1, 2, and 3 for MOBILE16). FEAR and MOBILE16 can be named onTABLESbecause they were named on the previousVARIABLESsubcommand.
Example
CROSSTABS VARIABLES=FEAR SEX RACE DEGREE (1,2)
/TABLES=FEAR BY SEX BY RACE BY DEGREE.
- This command produces four subtables. The first subtable crosstabulates FEAR by SEX, controlling for the first value of RACE and the first value of DEGREE; the second subtable controls for the second value of RACE and the first value of DEGREE; the third subtable controls for the first value of RACE and the second value of DEGREE; and the fourth subtable controls for the second value of RACE and the second value of DEGREE.