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.

808 LOGISTIC REGRESSION<br />

Example<br />

LOGISTIC REGRESSION PASS WITH GRE, CLASS<br />

/CATEGORICAL = CLASS<br />

/CONTRAST(CLASS)=HELMERT.<br />

• A logistic regression analysis of the dependent variable PASS is performed on the interval<br />

independent variable GRE and the categorical independent variable CLASS.<br />

• PASS is a dichotomous variable representing course pass/fail status and CLASS identifies<br />

whether a student is in one of three classrooms. A HELMERT contrast is requested.<br />

Example<br />

LOGISTIC REGRESSION PASS WITH GRE, CLASS<br />

/CATEGORICAL = CLASS<br />

/CONTRAST(CLASS)=SPECIAL(2 -1 -1<br />

0 1 -1).<br />

• In this example, the contrasts are specified with the keyword SPECIAL.<br />

METHOD Subcommand<br />

METHOD indicates how the independent variables enter the model. The specification is the<br />

METHOD subcommand followed by a single method keyword. The keyword METHOD can be<br />

omitted. Optionally, specify the independent variables and interactions for which the method<br />

is to be used. Use the keyword BY between variable names of an interaction term.<br />

• If no variable list is specified or if the keyword ALL is used, all of the independent variables<br />

following the keyword WITH on the VARIABLES subcommand are eligible for inclusion<br />

in the model.<br />

• If no METHOD subcommand is specified, the default method is ENTER.<br />

• Variables specified on CATEGORICAL are replaced by sets of contrast variables. The set<br />

of contrast variables associated with a categorical variable is entered or removed from the<br />

model as a single step.<br />

• Any number of METHOD subcommands can appear in a Logistic Regression procedure.<br />

METHOD subcommands are processed in the order in which they are specified. Each<br />

method starts with the results from the previous method. If BSTEP is used, all remaining<br />

eligible variables are entered at the first step. All variables are then eligible for entry and<br />

removal unless they have been excluded from the METHOD variable list.<br />

• The beginning model for the first METHOD subcommand is either the constant variable<br />

(by default or if NOORIGIN is specified) or an empty model (if ORIGIN is specified).<br />

The available METHOD keywords are:<br />

ENTER Forced entry. All variables are entered in a single step. This is the default if the<br />

METHOD subcommand is omitted.<br />

FSTEP Forward stepwise. The variables (or interaction terms) specified on FSTEP are<br />

tested for entry into the model one by one, based on the significance level of the<br />

score statistic. The variable with the smallest significance less than PIN is entered<br />

into the model. After each entry, variables that are already in the model are tested<br />

for possible removal, based on the significance of the conditional statistic, the

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

Saved successfully!

Ooh no, something went wrong!