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.

614 GENLOG<br />

Example<br />

GENLOG RESPONSE BY SEASON<br />

/MODEL=MULTINOMIAL<br />

/PLOT=RESID(ADJRESID,DEV)<br />

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

• This example requests plots of adjusted and deviance residuals against observed and<br />

expected counts.<br />

• Note that if you specify /PLOT=RESID(ADJRESID) RESID(DEV), only the deviance<br />

residuals are plotted. The first keyword specification, RESID(ADJRESID), is ignored.<br />

MISSING Subcommand<br />

MISSING controls missing values. By default, GENLOG excludes all cases with system- or usermissing<br />

values for any variable. You can specify INCLUDE to include user-missing values.<br />

EXCLUDE Delete cases with user-missing values. This is the default if the subcommand<br />

is omitted. You can also specify the keyword DEFAULT.<br />

INCLUDE Include cases with user-missing values. Only cases with system-missing<br />

values are deleted.<br />

Example<br />

MISSING VALUES A(0).<br />

GENLOG A B<br />

/MISSING=INCLUDE<br />

/DESIGN=B.<br />

• Even though 0 was specified as missing, it is treated as a nonmissing category of A in this<br />

analysis.<br />

SAVE Subcommand<br />

SAVE saves specified temporary variables into the working data file. You can assign a new<br />

name to each temporary variable saved.<br />

• The temporary variables you can save include RESID (raw residual), ZRESID (standardized<br />

residual), ADJRESID (adjusted residual), DEV (deviance residual), and PRED (predicted<br />

cell frequency). An explanatory label is assigned to each saved variable.<br />

• A temporary variable can be saved only once on a SAVE subcommand.<br />

• To assign a name to a saved temporary variable, specify the new name in parentheses<br />

following that temporary variable. The new name must conform to SPSS naming conventions<br />

and must be unique in the working data file. The names cannot begin with # or $.<br />

• If you do not specify a variable name in parentheses, GENLOG assigns default names to<br />

the saved temporary variables. A default name starts with the first three characters of the<br />

name of the saved temporary variable, followed by an underscore and a unique number.<br />

For example, RESID will be saved as RES_n, where n is a number incremented each time<br />

a default name is assigned to a saved RESID.

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

Saved successfully!

Ooh no, something went wrong!