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.

Example<br />

* Contrasts for a logistic regression model<br />

LOGLINEAR 825<br />

LOGLINEAR RESPONSE(1,2) BY TIME(1,4)<br />

/CONTRAST(TIME) = SPECIAL(4*1, 7 14 27 51, 8*1)<br />

/PRINT=ALL /PLOT=DEFAULT<br />

/DESIGN=RESPONSE, TIME(1) BY RESPONSE.<br />

• CONTRAST is used to transform the independent variable into a metric variable.<br />

• TIME represents elapsed time in days. Therefore, the weights in the contrast represent the<br />

metric of the passage of time.<br />

CRITERIA Subcommand<br />

CRITERIA specifies the values of some constants in the Newton-Raphson algorithm. Defaults<br />

or specifications remain in effect until overridden with another CRITERIA subcommand.<br />

CONVERGE(n) Convergence criterion. Specify a value for the convergence criterion. The<br />

default is 0.001.<br />

ITERATE(n) Maximum number of iterations. Specify the maximum number of iterations<br />

for the algorithm. The default number is 20.<br />

DELTA(n) Cell delta value. The value of delta is added to each cell frequency for the<br />

first iteration. For saturated models, it remains in the cell. The default value<br />

is 0.5. LOGLINEAR does not display parameter estimates or correlation matrices<br />

of parameter estimates if any sampling zero cells exist in the expected<br />

table after delta is added. Parameter estimates and correlation matrices can<br />

be displayed in the presence of structural zeros.<br />

DEFAULT Default values are used. DEFAULT can be used to reset the parameters to the<br />

default.<br />

Example<br />

LOGLINEAR DPREF(2,3) BY RACE ORIGIN CAMP(1,2)<br />

/CRITERIA=ITERATION(50) CONVERGE(.0001).<br />

• ITERATION increases the maximum number of iterations to 50.<br />

• CONVERGE lowers the convergence criterion to 0.0001.<br />

PRINT Subcommand<br />

PRINT requests statistics that are not produced by default.<br />

• By default, LOGLINEAR displays the frequency table and residuals. The parameter estimates<br />

of the model are also displayed if DESIGN is not used.<br />

• Multiple PRINT subcommands are permitted. The specifications are cumulative.

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

Saved successfully!

Ooh no, something went wrong!