14.03.2014 Views

Basic Analysis and Graphing - SAS

Basic Analysis and Graphing - SAS

Basic Analysis and Graphing - SAS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 7 Performing Simple Logistic Regression 229<br />

Additional Examples of Logistic Regression<br />

In Figure 7.6, note the following observations:<br />

• The first (bottom) curve represents the probability that a car at a given weight is Sporty.<br />

• The second curve represents the probability that a car is Small or Sporty. Looking only at the distance<br />

between the first <strong>and</strong> second curves corresponds to the probability of being Small.<br />

• As you might expect, heavier cars are more likely to be Large.<br />

• Markers for the data are drawn at their x-coordinate, with the y position jittered r<strong>and</strong>omly within the<br />

range corresponding to the response category for that row.<br />

If the x -variable has no effect on the response, then the fitted lines are horizontal <strong>and</strong> the probabilities are<br />

constant for each response across the continuous factor range. Figure 7.7 shows a logistic plot where Weight<br />

is not useful for predicting Type.<br />

Figure 7.7 Examples of Sample Data Table <strong>and</strong> Logistic Plot Showing No y by x Relationship<br />

Note: To re-create the plots in Figure 7.7 <strong>and</strong> Figure 7.8, you must first create the data tables shown here,<br />

<strong>and</strong> then perform steps 7-10 at the beginning of this section.<br />

If the response is completely predicted by the value of the factor, then the logistic curves are effectively<br />

vertical. The prediction of a response is near certain (the probability is almost 1) at each of the factor levels.<br />

Figure 7.8 shows a logistic plot where Weight almost perfectly predicts Type.<br />

Note: In this case, the parameter estimates become very large <strong>and</strong> are marked unstable in the regression<br />

report.

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

Saved successfully!

Ooh no, something went wrong!