<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Add upper and lower confidence limit CDF curves in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Add-upper-and-lower-confidence-limit-CDF-curves/m-p/317258#M69437</link>
    <description>&lt;PRE&gt;
OK. Call missing of them if you don't want.

data have;
 set quantiles cdfplot;
run;
---------&amp;gt;
data have;
 set quantiles cdfplot;
 if VarName='Height' then call missing(lclnormal,uclnormal);
run;


&lt;/PRE&gt;</description>
    <pubDate>Wed, 07 Dec 2016 09:52:41 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2016-12-07T09:52:41Z</dc:date>
    <item>
      <title>Add upper and lower confidence limit CDF curves</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-upper-and-lower-confidence-limit-CDF-curves/m-p/316637#M69228</link>
      <description>&lt;P&gt;What&amp;nbsp;I try to do are:&lt;/P&gt;&lt;P&gt;(1) add upper and lower confidence limit curves for data1 (say at 95% confidence&amp;nbsp;level); and&lt;/P&gt;&lt;P&gt;(2) use the same x axis for the merged CDF graph (the graph below has two x axis overlay).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried several options like&amp;nbsp;&lt;SPAN&gt;CIPCTLDF or&amp;nbsp;CIPCTLNORMAL for confidence limit curves, no progress. Too late at night, brain doesn't function well &amp;amp;_&amp;amp; Thank you for your kindly help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc greplay nofs igout=gseg; delete _all_; run;

goptions nodisplay;
      ods graphics off;
      proc univariate data=data1 noprint ;
        cdf nr5m / normal(color=red)
                   name='FIGURE1'
                   height=2;
        inset normal(mu sigma) / header='NR5M' position=nw  height=2 ;
      run;
      quit;

      proc univariate data=data2 noprint;
        cdf nr1000m / normal(color=blue)
                      name='FIGURE2'                
                      height=2;
        inset normal(mu sigma) / header='NR1000M' position = (0.65, 85)  refpoint = tl  height=2;
      run;
      quit;

	  title 'CDF of Data1 and Data2';
      goptions display;
      proc greplay igout=work.gseg tc=sashelp.templt template=whole nofs;
        treplay 1:FIGURE1 1:FIGURE2;
      run;

      ods graphics on;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/6214iE86B95ADEC328A53/image-size/original?v=v2&amp;amp;px=-1" border="0" alt="CDF 1and2.jpg" title="CDF 1and2.jpg" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2016 08:14:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-upper-and-lower-confidence-limit-CDF-curves/m-p/316637#M69228</guid>
      <dc:creator>Jonate_H</dc:creator>
      <dc:date>2016-12-05T08:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Add upper and lower confidence limit CDF curves</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-upper-and-lower-confidence-limit-CDF-curves/m-p/316651#M69236</link>
      <description>&lt;PRE&gt;
How about this one :



ods select none;
ods output  CDFPlot=cdfplot Quantiles=quantiles;
proc univariate data=sashelp.class  CIPCTLNORMAL(type=twosided alpha=0.05);
 var weight height;
 cdf weight height/normal ;
run;
ods select all;
data quantiles;
 set quantiles;
 percent=input(scan(quantile,1,'%'),best.);
run;

data have;
 set quantiles cdfplot;
run;

proc sgplot data=have noautolegend;
band y=percent lower=lclnormal upper=uclnormal/group=varname transparency=0.6;
step x=ecdfx y=ecdfy/group=varname;
series x=cdfx y=cdfy/group=varname name='x';
keylegend 'x' / position=topleft location=inside across=1;
xaxis label=' ';
run;

&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 Dec 2016 11:11:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-upper-and-lower-confidence-limit-CDF-curves/m-p/316651#M69236</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-12-05T11:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: Add upper and lower confidence limit CDF curves</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-upper-and-lower-confidence-limit-CDF-curves/m-p/316707#M69255</link>
      <description>&lt;P&gt;To add to KSharp's suggestion, you can also use the OUTPUT statement and the PCTLPTS= option to obtain the CIs on a denser set of quantiles. See the article &lt;A href="http://blogs.sas.com/content/iml/2013/05/06/compute-confidence-intervals-for-percentiles-in-sas.html" target="_self"&gt;"Compute confidence intervals for percentiles in SAS,"&lt;/A&gt;&amp;nbsp;which also shows how to handle the case of non-normal data.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2016 14:21:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-upper-and-lower-confidence-limit-CDF-curves/m-p/316707#M69255</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-12-05T14:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Add upper and lower confidence limit CDF curves</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-upper-and-lower-confidence-limit-CDF-curves/m-p/317159#M69395</link>
      <description>&lt;P&gt;Thank you Ksharp and Rick as always!&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2016 22:17:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-upper-and-lower-confidence-limit-CDF-curves/m-p/317159#M69395</guid>
      <dc:creator>Jonate_H</dc:creator>
      <dc:date>2016-12-06T22:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Add upper and lower confidence limit CDF curves</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-upper-and-lower-confidence-limit-CDF-curves/m-p/317229#M69418</link>
      <description>&lt;P&gt;One more question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my dataset there are two variables, one variable&amp;nbsp;is for actual&amp;nbsp;data and the other one for&amp;nbsp;simulated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any option to add bands only to simulated data's CDF curve? or, can I set band color as transparent for actual data (so that its bands will be unvisible)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, can I hide the bands for weight, and only keep bands for hight? I've tried several options, and haven't figure out yet.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2016 07:42:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-upper-and-lower-confidence-limit-CDF-curves/m-p/317229#M69418</guid>
      <dc:creator>Jonate_H</dc:creator>
      <dc:date>2016-12-07T07:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: Add upper and lower confidence limit CDF curves</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-upper-and-lower-confidence-limit-CDF-curves/m-p/317258#M69437</link>
      <description>&lt;PRE&gt;
OK. Call missing of them if you don't want.

data have;
 set quantiles cdfplot;
run;
---------&amp;gt;
data have;
 set quantiles cdfplot;
 if VarName='Height' then call missing(lclnormal,uclnormal);
run;


&lt;/PRE&gt;</description>
      <pubDate>Wed, 07 Dec 2016 09:52:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-upper-and-lower-confidence-limit-CDF-curves/m-p/317258#M69437</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-12-07T09:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: Add upper and lower confidence limit CDF curves</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Add-upper-and-lower-confidence-limit-CDF-curves/m-p/317387#M69484</link>
      <description>&lt;P&gt;That's pretty neat, thank you Ksharp!&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2016 17:00:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Add-upper-and-lower-confidence-limit-CDF-curves/m-p/317387#M69484</guid>
      <dc:creator>Jonate_H</dc:creator>
      <dc:date>2016-12-07T17:00:48Z</dc:date>
    </item>
  </channel>
</rss>

