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 noMETHOD
subcommand is specified or if aMETHOD
subcommand is specified without naming the variables to be used. - If the covariate list is not specified on
VARIABLES
but one or moreMETHOD
subcommands are used, the covariate list is assumed to be the union of the sets of variables listed on all of theMETHOD
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.