General mode (CROSSTABS command)

  • The actual keyword TABLES can be omitted in general mode.
  • In general mode, both numeric and string variables can be specified.
  • The keywords ALL and TO can be specified in any dimension. In general mode, TO refers to the order of variables in the active dataset and ALL refers 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.