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.

810 LOGISTIC REGRESSION<br />

SELECT Subcommand<br />

By default, all cases in the working data file are considered for inclusion in LOGISTIC<br />

REGRESSION. Use the optional SELECT subcommand to include a subset of cases in the<br />

analysis.<br />

• The specification is either a logical expression or keyword ALL. ALL is the default. Variables<br />

named on VARIABLES, CATEGORICAL, or METHOD subcommands cannot appear on<br />

SELECT.<br />

• In the logical expression on SELECT, the relation can be EQ, NE, LT, LE, GT, or GE. The<br />

variable must be numeric and the value can be any number.<br />

• Only cases for which the logical expression on SELECT is true are included in calculations.<br />

All other cases, including those with missing values for the variable named on<br />

SELECT, are unselected.<br />

• Diagnostic statistics and classification statistics are reported for both selected and<br />

unselected cases.<br />

• Cases deleted from the working data file with the SELECT IF or SAMPLE command are<br />

not included among either the selected or unselected cases.<br />

Example<br />

LOGISTIC REGRESSION VARIABLES=GRADE WITH GPA,TUCE,PSI<br />

/SELECT SEX EQ 1 /CASEWISE=RESID.<br />

• Only cases with the value 1 for SEX are included in the logistic regression analysis.<br />

• Residual values generated by CASEWISE are displayed for both selected and unselected<br />

cases.<br />

ORIGIN and NOORIGIN Subcommands<br />

ORIGIN and NOORIGIN control whether or not the constant is included. NOORIGIN (the default)<br />

includes a constant term (intercept) in all equations. ORIGIN suppresses the constant term and<br />

requests regression through the origin. (NOCONST can be used as an alias for ORIGIN.)<br />

• The only specification is either ORIGIN or NOORIGIN.<br />

• ORIGIN or NOORIGIN can be specified only once per Logistic Regression procedure, and<br />

it affects all METHOD subcommands.<br />

Example<br />

LOGISTIC REGRESSION VARIABLES=PASS WITH GPA,GRE,MAT /ORIGIN.<br />

• ORIGIN suppresses the automatic generation of a constant term.

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

Saved successfully!

Ooh no, something went wrong!