14.03.2014 Views

Modeling and Multivariate Methods - SAS

Modeling and Multivariate Methods - SAS

Modeling and Multivariate Methods - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

148 Fitting Stepwise Regression Models Chapter 4<br />

Performing Logistic Stepwise Regression<br />

Example Using the Make Model Comm<strong>and</strong> for Hierarchical Terms<br />

A simple model examines at the cost per ounce ($/oz) of hot dogs as a function of the Type of hot dog<br />

(Meat, Beef, Poultry) <strong>and</strong> the Size of the hot dog (Jumbo, Regular, Hors d’oeuvre).<br />

1. Open the Hot Dogs2.jmp sample data table.<br />

2. Select Analyze > Fit Model.<br />

3. Select $/oz <strong>and</strong> click Y.<br />

4. Select Type <strong>and</strong> Size <strong>and</strong> click Add.<br />

5. For Personality, select Stepwise.<br />

6. Click Run.<br />

7. For Stopping Rule, select P-value Threshold.<br />

8. For Rules, select Restrict.<br />

9. Click Go.<br />

Figure 4.13 Current Estimates Report for a Model with Hierarchical Effects<br />

10. Click Make Model.<br />

The following actions occur:<br />

• Indicator variables are created in the data table for those checked rows in the Current Estimates table<br />

that are partial levels of a main effect. In this example, two columns are created for Type <strong>and</strong> one column<br />

is created for Size.<br />

• A new Fit Model launch window appears. The effects are those that were selected in the stepwise<br />

process. Run the Fit Model window.<br />

Performing Logistic Stepwise Regression<br />

JMP performs logistic stepwise regression in a similar way to st<strong>and</strong>ard least squares logistic regression. To<br />

run a logistic stepwise regression, simply add terms to the model as usual <strong>and</strong> choose Stepwise from the<br />

personality drop-down menu.<br />

The difference in the report when the response is categorical is in the Current Estimates section of the<br />

report. Wald/Score chi-square statistics appear, <strong>and</strong> the overall fit of the model is shown as -LogLikelihood.

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

Saved successfully!

Ooh no, something went wrong!