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.

Temporary variables created by LOGISTIC REGRESSION are:<br />

Example<br />

Overview<br />

Options<br />

PRED<br />

PGROUP<br />

RESID<br />

DEV<br />

LOGISTIC REGRESSION PROMOTED WITH AGE, JOBTIME, JOBRATE.<br />

LOGISTIC REGRESSION 803<br />

LOGISTIC REGRESSION regresses a dichotomous dependent variable on a set of independent<br />

variables (Aldrich and Nelson, 1984; Fox, 1984; Hosmer and Lemeshow, 1989; McCullagh<br />

and Nelder, 1989; Agresti, 1990). Categorical independent variables are replaced by sets of<br />

contrast variables, each set entering and leaving the model in a single step.<br />

Processing of Independent Variables. You can specify which independent variables are categorical<br />

in nature on the CATEGORICAL subcommand. You can control treatment of categorical<br />

independent variables by the CONTRAST subcommand. Seven methods are available for entering<br />

independent variables into the model. You can specify any one of them on the<br />

METHOD subcommand. You can also use the keyword BY between variable names to enter<br />

interaction terms.<br />

Selecting Cases. You can use the SELECT subcommand to define subsets of cases to be used<br />

in estimating a model.<br />

Regression through the Origin. You can use the ORIGIN subcommand to exclude a constant<br />

term from a model.<br />

Specifying Termination and Model-Building Criteria. You can further control computations when<br />

building the model by specifying criteria on the CRITERIA subcommand.<br />

Adding New Variables to the Working Data File. You can save the residuals, predicted values, and<br />

diagnostics generated by LOGISTIC REGRESSION in the working data file.<br />

Output. You can use the PRINT subcommand to print optional output, use the CASEWISE subcommand<br />

to request analysis of residuals, and use the ID subcommand to specify a variable<br />

whose values or value labels identify cases in output. You can request plots of the actual and<br />

predicted values for each case with the CLASSPLOT subcommand.<br />

Basic Specification<br />

LEVER<br />

LRESID<br />

SRESID<br />

ZRESID<br />

COOK<br />

DFBETA<br />

• The minimum specification is the VARIABLES subcommand with one dichotomous<br />

dependent variable. You must specify a list of independent variables either following the<br />

keyword WITH on the VARIABLES subcommand or on a METHOD subcommand.

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

Saved successfully!

Ooh no, something went wrong!