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
BYkeyword 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 theBYkeyword 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 Cdisplays 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
TABLESsubcommand. - Within the variable list, all specified variables
must be unique. Also, if a variable is specified after the
BYkeyword, then it must be different from all variables preceding theBYkeyword.
VARIABLES. Specifies the tabulation variables.