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.

Limitations<br />

Example<br />

LOGISTIC REGRESSION 805<br />

• The dependent variable must be dichotomous for each split-file group. Specifying a<br />

dependent variable with more or less than two nonmissing values per split-file group will<br />

result in an error.<br />

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

• PASS is specified as the dependent variable.<br />

• GPA, MAT, and GRE are specified as independent variables.<br />

• LOGISTIC REGRESSION produces the default output for the logistic regression of PASS<br />

on GPA, MAT, and GRE.<br />

VARIABLES Subcommand<br />

VARIABLES specifies the dependent variable and, optionally, all independent variables in the<br />

model. The dependent variable appears first on the list and is separated from the independent<br />

variables by the keyword WITH.<br />

• One VARIABLES subcommand is allowed for each Logistic Regression procedure.<br />

• The dependent variable must be dichotomous—that is, it must have exactly two values<br />

other than system-missing and user-missing values for each split-file group.<br />

• The dependent variable may be a string variable if its two values can be differentiated by<br />

their first eight characters.<br />

• You can indicate an interaction term on the variable list by using the keyword BY to separate<br />

the individual variables.<br />

• If all METHOD subcommands are accompanied by independent variable lists, the keyword<br />

WITH and the list of independent variables may be omitted.<br />

• If the keyword WITH is used, all independent variables must be specified. For interaction<br />

terms, only the individual variable names that make up the interaction (for example, X1,<br />

X2) need to be specified. Specifying the actual interaction term (for example, X1 BY X2)<br />

on the VARIABLES subcommand is optional if you specify it on a METHOD subcommand.<br />

Example<br />

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

AGE BY JOBTIME.<br />

• PROMOTED is specified as the dependent variable.<br />

• AGE, JOBTIME, JOBRATE, and the interaction AGE by JOBTIME are specified as the independent<br />

variables.<br />

• Because no METHOD is specified, all three single independent variables and the interaction<br />

term are entered into the model.<br />

• LOGISTIC REGRESSION produces the default output.

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

Saved successfully!

Ooh no, something went wrong!