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.

NOMREG 1075<br />

• The basic format for the TEST subcommand is an optional list of values enclosed in<br />

parentheses, an optional label in quotes, an effect name or the keyword ALL, and a list of<br />

values.<br />

• The value list preceding the first effect or the keyword ALL are the constants to which the<br />

linear combinations are equated under the null hypotheses. If this value list is omitted, the<br />

constants are assumed to be all zeros.<br />

• The label is a string with a maximum length of 255 characters (or 127 double-byte<br />

characters). Only one label per linear combination can be specified.<br />

• When ALL is specified, only a list of values can follow. The number of values must equal<br />

the number of parameters (including the redundant ones) in the model.<br />

• When effects are specified, only valid effects appearing or implied on the MODEL<br />

subcommand can be named. The number of values following an effect name must equal<br />

the number of parameters (including the redundant ones) corresponding to that effect. For<br />

example, if the effect A*B takes up six parameters, then exactly six values must follow<br />

A*B. To specify the coefficient for the intercept, use the keyword INTERCEPT. Only one<br />

value is expected to follow INTERCEPT.<br />

• When multiple linear combinations are specified within the same TEST subcommand, use<br />

semicolons to separate each hypothesis.<br />

• The linear combinations are first tested separately for each logit and then simultaneously<br />

tested for all of the logits.<br />

• A number can be specified as a fraction with a positive denominator. For example, 1/3 or<br />

–1/3 are valid, but 1/–3 is invalid.<br />

• Effects appearing or implied on the MODEL subcommand but not specified on the TEST<br />

are assumed to take the value 0 for all of their parameters.<br />

Example<br />

NOMREG<br />

movie BY gender date<br />

/CRITERIA = CIN(95) DELTA(0) MXITER(100) MXSTEP(5) LCONVERGE(0)<br />

PCONVERGE(1.0E-6) SINGULAR(1.0E-8)<br />

/INTERCEPT = EXCLUDE<br />

/PRINT = CELLPROB CLASSTABLE FIT CORB COVB HISTORY(1) PARAMETER<br />

SUMMARY LRT<br />

/TEST (0 0) = ALL 1 0 0 0;<br />

ALL 0 1 0 0 .<br />

• TEST specifies two separate tests: one in which the coefficient corresponding to the first<br />

category for gender is tested for equality with zero, and one in which the coefficient<br />

corresponding to the second category for gender is tested for equality with zero.

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

Saved successfully!

Ooh no, something went wrong!