General mode (CROSSTABS command)
- The actual keyword
TABLEScan be omitted in general mode. - In general mode, both numeric and string variables can be specified.
- The keywords
ALLandTOcan be specified in any dimension. In general mode,TOrefers to the order of variables in the active dataset andALLrefers to all variables defined in the active dataset.
Example
CROSSTABS TABLES=FEAR BY SEX BY RACE.
- This example crosstabulates FEAR by SEX controlling for RACE. In each subtable, FEAR is the row variable and SEX is the column variable.
- A subtable is produced for each value of the control variable RACE.
Example
CROSSTABS TABLES=CONFINAN TO CONARMY BY SEX TO REGION.
- This command produces crosstabulations of all variables in the active dataset between and including CONFINAN and CONARMY by all variables between and including SEX and REGION.