Procedure features: |
BAND
statement |
KEYLEGEND statement |
SCATTER statement |
SERIES statement |
|
Sample library
member: |
GSGPLBND
|
This
example shows how to use pre-computed data to create a scatter
plot, fit line, and confidence bands. The data set was created by the REG
procedure. This technique is useful for more complex fit models.
|
proc sgplot data=sashelp.classfit;
title "Fit and Confidence Band from Precomputed Data";
band x=height lower=lower upper=upper /
legendlabel="95% CLI" name="band1";
|
|
band x=height lower=lowermean upper=uppermean /
fillattrs=GraphConfidence2
legendlabel="95% CLM" name="band2";
scatter x=height y=weight;
series x=height y=predict / lineattrs=GraphPrediction
legendlabel="Predicted Fit" name="series"; |
|
keylegend "series" "band1" "band2" / location=inside position=bottomright;
run; |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.