Integer mode (CROSSTABS command)

  • In integer mode, variables specified on TABLES must first be named on VARIABLES.
  • The keywords TO and ALL can be specified in any dimension. In integer mode, TO and ALL refer to the position and subset of variables specified on the VARIABLES 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 on TABLES because they were named on the previous VARIABLES 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.