Previous Page | Next Page

The SGSCATTER Procedure

Example 4: Creating a Comparative Panel with Regression Fits and Confidence Ellipses


Procedure features:

COMPARE statement

REG option

ELLIPSE option

SPACING option

Sample library member GSGSCCM1

[untitled graphic]

This example shows a comparative panel of scatter plots with regression fits and confidence ellipses.

 Note about code
proc sgscatter data=sashelp.iris(where=(species="Versicolor"));
  title "Versicolor Length and Width";
  compare y=(sepalwidth petalwidth)
          x=(sepallength petallength)
          / reg ellipse=(type=mean) spacing=4;
run;

Previous Page | Next Page | Top of Page