SUBPOP Subcommand (CSTABULATE command)

The SUBPOP subcommand specifies subpopulations for which analyses are to be performed.

  • The set of subpopulations is defined by specifying a single categorical variable, or two or more categorical variables, separated by the BY keyword, whose values are crossed.
  • For example, /SUBPOP TABLE = A defines subpopulations based on the levels of variable A.
  • For example, /SUBPOP TABLE = A BY B defines subpopulations based on crossing the levels of variables A and B.
  • A maximum of 16 variables may be specified.
  • Numeric or string variables may be specified.
  • All specified variables must be unique.
  • Stratification or cluster variables may be specified, but no other plan file variables are allowed on the SUBPOP subcommand.
  • Tabulation variables may not be specified on the SUBPOP subcommand.
  • The BY keyword is used to separate variables.

The DISPLAY keyword specifies the layout of results for subpopulations.

LAYERED. Results for all subpopulations are displayed in the same table. This is the default.

SEPARATE. Results for different subpopulations are displayed in different tables.