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.

CONTRAST Subcommand<br />

LOGLINEAR 823<br />

CONTRAST indicates the type of contrast desired for a factor, where a factor is any categorical<br />

dependent or independent variable. The default contrast is DEVIATION for each factor.<br />

• The specification is CONTRAST, which is followed by a variable name in parentheses and<br />

the contrast-type keyword.<br />

• To specify a contrast for more than one factor, use a separate CONTRAST subcommand<br />

for each specified factor. Only one contrast can be in effect for each factor on each<br />

DESIGN.<br />

• A contrast specification remains in effect for subsequent designs until explicitly overridden<br />

by another CONTRAST subcommand.<br />

• The design matrix used for the contrasts can be displayed by specifying keyword DESIGN<br />

on the PRINT subcommand. However, this matrix is the basis matrix that is used to determine<br />

contrasts; it is not the contrast matrix itself.<br />

• CONTRAST can be used for a multinomial logit model, in which the dependent variable<br />

has more than two categories.<br />

• CONTRAST can be used for fitting linear logit models. The keyword BASIS is not appropriate<br />

for such models.<br />

• In a logit model, CONTRAST is used to transform the independent variable into a metric<br />

variable. Again, the keyword BASIS is not appropriate.<br />

The following contrast types are available:<br />

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

if the CONTRAST subcommand is not used. Refcat is the category for<br />

which parameter estimates are not displayed (they are the negative<br />

of the sum of the others). By default, refcat is the last category of the<br />

variable.<br />

DIFFERENCE Levels of a factor with the average effect of previous levels of a<br />

factor. Also known as reverse Helmert contrasts.<br />

HELMERT Levels of a factor with the average effect of subsequent levels of a<br />

factor.<br />

SIMPLE(refcat) Each level of a factor to the reference level. By default, LOGLINEAR<br />

uses the last category of the factor variable as the reference category.<br />

Optionally, any level can be specified as the reference category<br />

enclosed in parentheses after the keyword SIMPLE. The sequence of<br />

the level, not the actual value, must be specified.<br />

REPEATED Adjacent comparisons across levels of a factor.<br />

POLYNOMIAL(metric) Orthogonal polynomial contrasts. The default is equal spacing.<br />

Optionally, the coefficients of the linear polynomial can be specified<br />

in parentheses, indicating the spacing between levels of the treatment<br />

measured by the given factor.

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

Saved successfully!

Ooh no, something went wrong!