Example 19.20 Illustration of ODS Graphics

This example illustrates graphical output from PROC MODEL. This is a continuation of the section Nonlinear Regression Analysis. For information about the graphics available in the MODEL procedure, see the section ODS Graphics.

The following statements show how to generate ODS Graphics plots with the MODEL procedure. The plots are displayed in Output 19.20.1 and Output 19.20.2. Note that the variable date in the ID statement is used to define the horizontal tick mark values when appropriate.

title1 'Example of Graphical Output from PROC MODEL';

proc model data=sashelp.citimon;
   lhur = 1/(a * ip + b) + c;
   fit lhur;
   id date;
run;

Output 19.20.1 Diagnostics Plots
Diagnostics Plots

Output 19.20.2 Diagnostics Plots
Diagnostics Plots

You can also obtain the plots in the diagnostics panel as separate graphs by specifying the PLOTS(UNPACK) option. These plots are displayed in Output 19.20.3 through Output 19.20.10.

title1 'Unpacked Graphical Output from PROC MODEL';

proc model data=sashelp.citimon plots(unpack);
   lhur = 1/(a * ip + b) + c;
   fit lhur;
   id date;
run;

Output 19.20.3 Studentized Residuals Plot
Studentized Residuals Plot

Output 19.20.4 Cook’s D Plot
Cook’s D Plot

Output 19.20.5 Predicted versus Actual Plot
Predicted versus Actual Plot

Output 19.20.6 Autocorrelation of Residuals Plot
Autocorrelation of Residuals Plot

Output 19.20.7 Partial Autocorrelation of Residuals Plot
Partial Autocorrelation of Residuals Plot

Output 19.20.8 Inverse Autocorrelation of Residuals Plot
Inverse Autocorrelation of Residuals Plot

Output 19.20.9 Q-Q Plot of Residuals
Q-Q Plot of Residuals

Output 19.20.10 Histogram of Residuals
Histogram of Residuals