Integer mode (CROSSTABS command)
- In integer mode, variables specified on
TABLES
must first be named onVARIABLES
. - The keywords
TO
andALL
can be specified in any dimension. In integer mode,TO
andALL
refer to the position and subset of variables specified on theVARIABLES
subcommand, not to the variables in the active dataset.
Example
CROSSTABS VARIABLES=FEAR (1,2) MOBILE16 (1,3)
/TABLES=FEAR BY MOBILE16.
-
VARIABLES
names 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. -
TABLES
specifies 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 onTABLES
because they were named on the previousVARIABLES
subcommand.
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.