Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
The REG Procedure

Example 55.7: Plotting Model Diagnostic Statistics

This example illustrates how you can display diagnostics for checking the adequacy of a regression model. The following statements plot the studentized deleted residuals against the observation number for the full model. Vertical reference lines at +- {tinv}(.95,n-p-1) = +- 1.714 are added to identify possible outlying Oxygen values. A vertical reference line is displayed at zero by default when the RSTUDENT option is specified. The graph is shown in Output 55.7.1. Observations 15 and 17 are indicated as possible outliers.

   title 'Check for Outlying Observations';
   symbol v=dot h=1 c=green;

   proc reg data=fitness;
      model Oxygen=Age Weight RunTime RunPulse RestPulse MaxPulse;
      plot rstudent.*obs.
           / vref= -1.714 1.714 cvref=blue lvref=1
             HREF=0 to 30 by 5 cHREF=red  cframe=ligr;
   run;

Output 55.7.1: Plotting Model Diagnostic Statistics
regx1b.gif (6175 bytes)

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.