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.

Chapter 25 Comparing Model Performance 629<br />

Example of Model Comparison<br />

Example of Model Comparison<br />

This section provides an example of using the Model Comparison platform. The example uses demographic<br />

data to build a model for median home price. A regression model <strong>and</strong> a bootstrap forest model are<br />

compared.<br />

Begin by opening the Boston Housing.jmp sample data table.<br />

Create a Validation Column<br />

1. Create a column called validation.<br />

2. On the Column Info window, select R<strong>and</strong>om from the Initialize Data list.<br />

3. Select the R<strong>and</strong>om Indicator radio button.<br />

4. Click OK.<br />

The rows assigned a 0 are the training set. The rows assigned a 1 are the validation set.<br />

Create the Regression Model <strong>and</strong> Save the Prediction Formula to a Column<br />

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

2. Select mvalue <strong>and</strong> click Y.<br />

3. Select the other columns (except validation) <strong>and</strong> click Add.<br />

4. Select Stepwise in the Personality list.<br />

5. Select validation <strong>and</strong> click Validation.<br />

6. Click the Run button.<br />

7. Click the Go button.<br />

8. Click the Run Model button.<br />

The Fit Group report appears, a portion of which is shown in Figure 25.2.<br />

9. Save the prediction formula to a column by selecting Save Columns > Prediction Formula on the<br />

Response red triangle menu.

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

Saved successfully!

Ooh no, something went wrong!