VARIABLES Subcommand (COXREG command)

VARIABLES identifies the dependent variable and the covariates to be included in the analysis.

  • The minimum specification is the dependent variable.
  • Cases whose dependent variable values are negative are excluded from the analysis.
  • You must specify the keyword WITH and a list of all covariates if no METHOD subcommand is specified or if a METHOD subcommand is specified without naming the variables to be used.
  • If the covariate list is not specified on VARIABLES but one or more METHOD subcommands are used, the covariate list is assumed to be the union of the sets of variables listed on all of the METHOD subcommands.
  • You can specify an interaction of two or more covariates using the keyword BY. For example, A B BY C D specifies the three terms A, B*C, and D.
  • The keyword TO can be used to specify a list of covariates. The implied variable order is the same as in the active dataset.