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.

212 Performing Logistic Regression on Nominal <strong>and</strong> Ordinal Responses Chapter 7<br />

Logistic Fit Platform Options<br />

ROC Curve<br />

• columns called Prob[j] for j < r with a formula for the fit to level j<br />

• a column called Most Likely responsename that picks the most likely level of each row based on the<br />

computed probabilities.<br />

For an ordinal response model with r levels, JMP creates<br />

• a column called Linear that contains the formula for a linear combination of the regressors without an<br />

intercept term<br />

• columns called Cum[j], each with a formula for the cumulative probability that the response is less than<br />

or equal to level j, for levels j =1,2,...r -1. There is no Cum[ j =1,2,...r -1] that is 1 for all rows<br />

• columns called Prob[ j =1,2,...r -1], for 1 < j < r, each with the formula for the probability that the<br />

response is level j. Prob[j] is the difference between Cum[j] <strong>and</strong> Cum[j –1]. Prob[1] is Cum[1], <strong>and</strong> Prob[r]<br />

is 1–Cum[r –1].<br />

• a column called Most Likely responsename that picks the most likely level of each row based on the<br />

computed probabilities.<br />

Save Quantiles creates columns in the current data table named OrdQ.05, OrdQ.50, <strong>and</strong> OrdQ.95 that<br />

fit the quantiles for these three probabilities.<br />

Save Expected Value creates a column in the current data table called Ord Expected that is the linear<br />

combination of the response values with the fitted response probabilities for each row <strong>and</strong> gives the<br />

expected value.<br />

Receiver Operating Characteristic (ROC) curves measure the sorting efficiency of the model’s fitted<br />

probabilities to sort the response levels. ROC curves can also aid in setting criterion points in diagnostic<br />

tests. The higher the curve from the diagonal, the better the fit. An introduction to ROC curves is found in<br />

the Basic Analysis <strong>and</strong> Graphing book. If the logistic fit has more than two response levels, it produces a<br />

generalized ROC curve (identical to the one in the Partition platform). In such a plot, there is a curve for<br />

each response level, which is the ROC curve of that level versus all other levels. Details on these ROC curves<br />

are found in “Graphs for Goodness of Fit” on page 336 in the “Recursively Partitioning Data” chapter.<br />

Example of an ROC Curve<br />

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

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

3. Select ready <strong>and</strong> click Y.<br />

4. Select heat <strong>and</strong> soak <strong>and</strong> click Add.<br />

5. Select count <strong>and</strong> click Freq.<br />

6. Click Run.<br />

7. From the red triangle next to Nominal Logistic Fit, select ROC Curve.<br />

8. Select 1 as the positive level <strong>and</strong> click OK.

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

Saved successfully!

Ooh no, something went wrong!