27.03.2013 Views

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

298 COXREG<br />

STRATA Subcommand<br />

STRATA identifies a stratification variable. A different baseline survival function is computed<br />

for each stratum.<br />

• The only specification is the subcommand keyword with one, and only one, variable name.<br />

• If you have more than one stratification variable, create a new variable that corresponds<br />

to the combination of categories of the individual variables before invoking the COXREG<br />

command.<br />

• There is no limit to the number of levels for the strata variable.<br />

Example<br />

COXREG SURVIVAL WITH GROUP<br />

/STATUS SURVSTA (1)<br />

/STRATA=LOCATION.<br />

• STRATA specifies LOCATION as the strata variable.<br />

• Different baseline survival functions are computed for each value of LOCATION.<br />

CATEGORICAL Subcommand<br />

CATEGORICAL identifies covariates that are nominal or ordinal. Variables that are declared to<br />

be categorical are automatically transformed to a set of contrast variables (see “CONTRAST<br />

Subcommand” below). If a variable coded as 0 – 1 is declared as categorical, by default, its<br />

coding scheme will be changed to deviation contrasts.<br />

• Covariates not specified on CATEGORICAL are assumed to be at least interval, except for<br />

strings.<br />

• Variables specified on CATEGORICAL but not on VARIABLES or any METHOD subcommand<br />

are ignored.<br />

• Variables specified on CATEGORICAL are replaced by sets of contrast variables. If the<br />

categorical variable has n distinct values, there will be n –<br />

1 contrast variables generated.<br />

The set of contrast variables associated with one categorical variable are entered<br />

or removed from the model together.<br />

• If any one of the variables in an interaction term is specified on CATEGORICAL, the interaction<br />

term is replaced by contrast variables.<br />

• All string variables are categorical. Only the first eight characters of each value of a string<br />

variable are used in distinguishing among values. Thus, if two values of a string variable are<br />

identical for the first eight characters, the values are treated as though they were the same.<br />

CONTRAST Subcommand<br />

CONTRAST specifies the type of contrast used for categorical covariates. The interpretation<br />

of the regression coefficients for categorical covariates depends on the contrasts used. The<br />

default is DEVIATION. For illustration of contrast types, see the appendix.<br />

• The categorical covariate is specified in parentheses following CONTRAST.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!