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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

COXREG 299<br />

• If the categorical variable has n values, there will be n – 1 rows in the contrast matrix.<br />

Each contrast matrix is treated as a set of independent variables in the analysis.<br />

• Only one variable can be specified per CONTRAST subcommand, but multiple<br />

CONTRAST subcommands can be specified.<br />

• You can specify one of the contrast keywords in the parentheses after the variable specification<br />

to request a specific contrast type.<br />

The following contrast types are available:<br />

DEVIATION(refcat) Deviations from the overall effect. This is the default. The effect for<br />

each category of the independent variable except one is compared to<br />

the overall effect. Refcat is the category for which parameter estimates<br />

are not displayed (they must be calculated from the others). By default,<br />

refcat is the last category. To omit a category other than the last, specify<br />

the sequence number of the omitted category (which is not necessarily<br />

the same as its value) in parentheses after the keyword DEVIATION.<br />

SIMPLE(refcat) Each category of the independent variable except the last is compared<br />

to the last category. To use a category other than the last as the omitted<br />

reference category, specify its sequence number (which is not<br />

necessarily the same as its value) in parentheses following the keyword<br />

SIMPLE.<br />

DIFFERENCE Difference or reverse Helmert contrasts. The effects for each category<br />

of the covariate except the first are compared to the mean effect of the<br />

previous categories.<br />

HELMERT Helmert contrasts. The effects for each category of the independent<br />

variable except the last are compared to the mean effects of subsequent<br />

categories.<br />

POLYNOMIAL(metric) Polynomial contrasts. The first degree of freedom contains the linear effect<br />

across the categories of the independent variable, the second contains the<br />

quadratic effect, and so on. By default, the categories are assumed to be<br />

equally spaced; unequal spacing can be specified by entering a metric<br />

consisting of one integer for each category of the independent variable in<br />

parentheses after the keyword POLYNOMIAL. For example, CONTRAST<br />

(STIMULUS) = POLYNOMIAL(1,2,4) indicates that the three levels<br />

of STIMULUS are actually in the proportion 1:2:4. The default metric is<br />

always (1,2,...,k), where k categories are involved. Only the relative<br />

differences between the terms of the metric matter: (1,2,4) is the same metric<br />

as (2,3,5) or (20,30,50) because, in each instance, the difference between the<br />

second and third numbers is twice the difference between the first and second.<br />

REPEATED Comparison of adjacent categories. Each category of the independent<br />

variable except the first is compared to the previous category.<br />

SPECIAL(matrix) A user-defined contrast. After this keyword, a matrix is entered in<br />

parentheses with k –<br />

1 rows and k columns, where k is the number of<br />

categories of the independent variable. The rows of the contrast matrix<br />

contain the special contrasts indicating the desired comparisons<br />

between categories. If the special contrasts are linear combinations of<br />

each other, COXREG reports the linear dependency and stops

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

Saved successfully!

Ooh no, something went wrong!