TABLES Subcommand (CSTABULATE command)

The TABLES subcommand specifies the tabulation variables.

  • If a single variable list is specified, then a one-way frequency table is displayed for each variable in the list.
  • If the variable list is followed by the BY keyword and a variable, then two-way crosstabulations are displayed for each pair of variables. Pairs of variables are defined by crossing the variable list to the left of the BY keyword with the variable to the right. Each variable on the left defines the row dimension in a two-way crosstabulation, and the variable to the right defines the column dimension. For example, TABLES VARIABLES = A B BY C displays two tables: A by C and B by C.
  • Numeric or string variables may be specified.
  • Plan file and subpopulation variables may not be specified on the TABLES subcommand.
  • Within the variable list, all specified variables must be unique. Also, if a variable is specified after the BY keyword, then it must be different from all variables preceding the BY keyword.

VARIABLES. Specifies the tabulation variables.