<?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: How to color the confident interval? in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/How-to-color-the-confident-interval/m-p/591416#M8011</link>
    <description>&lt;P&gt;Anytime. You can read about the technique in the blog post&amp;nbsp;&lt;A href="https://blogs.sas.com/content/iml/2013/04/22/overlay-custom-curves.html" target="_self"&gt;How to overlay custom curves with PROC SGPLOT&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a nice day&lt;/P&gt;</description>
    <pubDate>Wed, 25 Sep 2019 06:34:04 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2019-09-25T06:34:04Z</dc:date>
    <item>
      <title>How to color the confident interval?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-to-color-the-confident-interval/m-p/591402#M8008</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have upload my question. And I know how to sketch the normal distribution but just have no idea how to color the confident interval.&lt;/P&gt;
&lt;P&gt;My code is&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data Q4;&lt;BR /&gt;do mean=0;&lt;BR /&gt;do x=-5 to 5 by .01;&lt;BR /&gt;y=pdf('normal',x,mean,1);&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc sgplot data=Q4;&lt;BR /&gt;band x=x lower=0 upper=y / group=mean transparency=.5;&lt;BR /&gt;series x=x y=y / group=mean;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think I need to modify the "band" there but don't know how. Anyone could help me with that??&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2019 02:23:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-to-color-the-confident-interval/m-p/591402#M8008</guid>
      <dc:creator>YangYY</dc:creator>
      <dc:date>2019-09-30T02:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to color the confident interval?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-to-color-the-confident-interval/m-p/591413#M8009</link>
      <description>&lt;P&gt;Do like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data normalpdf;
    lower_q = quantile('normal', .05/2);
    upper_q = quantile('normal', (1 - .05/2));

   do x=-4 to 4 by 0.01;
      y=pdf('normal',x);
      output;
   end;
    x = .; y = .;

   do lower_x_band = -4 to lower_q by 0.01;
      lower_band = pdf('normal',lower_x_band);
      output;
   end;
   lower_x_band = .; lower_band = .;
 
   do upper_x_band = upper_q to 4 by 0.01;
      upper_band = pdf('normal',upper_x_band);
      output;
   end;
   upper_x_band = .; upper_band = .;
run;

proc sgplot data=normalpdf noautolegend;
   series x=x y=y;
   band x = lower_x_band upper = lower_band lower = 0;
   band x = upper_x_band upper = upper_band lower = 0;
   yaxis offsetmin=0 min=0;
   xaxis label = 'x' min=-4.5 max=4.5;
run;
title;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="Udklip.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32724i65017E3299647BF4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Udklip.PNG" alt="Udklip.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 06:26:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-to-color-the-confident-interval/m-p/591413#M8009</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-09-25T06:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to color the confident interval?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-to-color-the-confident-interval/m-p/591414#M8010</link>
      <description>Thank you so much!!&lt;BR /&gt;Have a nice day!!</description>
      <pubDate>Wed, 25 Sep 2019 06:31:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-to-color-the-confident-interval/m-p/591414#M8010</guid>
      <dc:creator>YangYY</dc:creator>
      <dc:date>2019-09-25T06:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to color the confident interval?</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-to-color-the-confident-interval/m-p/591416#M8011</link>
      <description>&lt;P&gt;Anytime. You can read about the technique in the blog post&amp;nbsp;&lt;A href="https://blogs.sas.com/content/iml/2013/04/22/overlay-custom-curves.html" target="_self"&gt;How to overlay custom curves with PROC SGPLOT&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a nice day&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2019 06:34:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-to-color-the-confident-interval/m-p/591416#M8011</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-09-25T06:34:04Z</dc:date>
    </item>
  </channel>
</rss>

