Hajin Lee
Hajin Lee

Reputation: 169

Drawing graph of confidence band in sas

Using the simple code below, I made a graph of the cdf.

data record;
input v @@;
cards;
16.3 14.2 14.7 16 15.7
;
proc univariate data=record;
cdfplot;
run;

Now I want to add some lines to show the confidence band. I tried "proc sgplot" but couldn't find any that worked for this. Does anyone have an idea?

Upvotes: 0

Views: 673

Answers (1)

Reeza
Reeza

Reputation: 21274

  • Get the data from PROC UNIVARIATE
  • Graph it using SGPLOT
  • Add your bands
proc univariate data=record;
cdfplot ;
ods output cdfplot=graphData;
run;

proc sgplot data=graphData;
step x=ecdfx y=ecdfy;
band .....;
run;

Upvotes: 1

Related Questions