<?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: Line graph with 95% confidence interval in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Line-graph-with-95-confidence-interval/m-p/788546#M252146</link>
    <description>&lt;P&gt;Do you mean something like that:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=have;
HIGHLOW    x=Month_year LOW=ColLowerCL HIGH=ColUpperCL / TYPE=BAR transparency=0.5 BARWIDTH=0.5;
series x=Month_year y=ColPercent ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;B.&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jan 2022 21:09:07 GMT</pubDate>
    <dc:creator>yabwon</dc:creator>
    <dc:date>2022-01-05T21:09:07Z</dc:date>
    <item>
      <title>Line graph with 95% confidence interval</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Line-graph-with-95-confidence-interval/m-p/788537#M252138</link>
      <description>&lt;P&gt;Hello friend,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Happy New Year!I have the following data set and am trying to create a line graph with 95% CI. I used the proc sgplot (below). But it gives 95% CI as shade. Can anyone help me tell me how to do 95% CI as bar, not as shadow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data have;&lt;BR /&gt;input Month_year $ frequency StdDev ColPercent ColStdErr ColLowerCL ColUpperCL positive negative;&lt;BR /&gt;cards;&lt;BR /&gt;Jan_2018 27580 729.40706 1.0132 0.0182 0.9776 1.0488 0.0356041171 0.0356041171&lt;BR /&gt;Feb_2018 25225 678.96555 1.0562 0.0195 1.0179 1.0944 0.0382764006 0.0382764006&lt;BR /&gt;Mar_2018 28230 746.38890 1.0956 0.0194 1.0576 1.1335 0.0379820518 0.0379820518&lt;BR /&gt;Apr_2018 26760 700.25026 1.0778 0.0188 1.0410 1.1146 0.0368349788 0.036834978&lt;BR /&gt;May_2018 27550 742.60845 1.0735 0.0195 1.0353 1.1118 0.0382656688 0.038265668&lt;BR /&gt;Jun_2018 25035 679.67669 1.0136 0.0187 0.9770 1.0502 0.0366360408 0.0366360408&lt;BR /&gt;Jul_2018 26160 716.09459 1.0352 0.0195 0.9970 1.0734 0.0381609915 0.0381609915&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sgplot data=have;&lt;BR /&gt;band x=Month_year lower=ColLowerCL upper=ColUpperCL / transparency=0.5;&lt;BR /&gt;series x=Month_year y=ColPercent ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thnaks&lt;/P&gt;&lt;P&gt;Muni&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 20:36:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Line-graph-with-95-confidence-interval/m-p/788537#M252138</guid>
      <dc:creator>sandrube</dc:creator>
      <dc:date>2022-01-05T20:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: Line graph with 95% confidence interval</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Line-graph-with-95-confidence-interval/m-p/788544#M252144</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=have;


scatter x=Month_year y=colPercent / yerrorlower=ColLowerCL yerrorupper = ColUpperCL ;
series x=Month_year y=ColPercent ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Use a SERIES plot instead of BAND. You can customize it further using options on the SERIES statement, to hide the marker or change colours or add/remove endcaps etc.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See the docs for all options:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatproc/p1lcbd3lhs3t3bn1jk6d8sjt2yqx.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/grstatproc/p1lcbd3lhs3t3bn1jk6d8sjt2yqx.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/272059"&gt;@sandrube&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello friend,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Happy New Year!I have the following data set and am trying to create a line graph with 95% CI. I used the proc sgplot (below). But it gives 95% CI as shade. Can anyone help me tell me how to do 95% CI as bar, not as shadow.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data have;&lt;BR /&gt;input Month_year $ frequency StdDev ColPercent ColStdErr ColLowerCL ColUpperCL positive negative;&lt;BR /&gt;cards;&lt;BR /&gt;Jan_2018 27580 729.40706 1.0132 0.0182 0.9776 1.0488 0.0356041171 0.0356041171&lt;BR /&gt;Feb_2018 25225 678.96555 1.0562 0.0195 1.0179 1.0944 0.0382764006 0.0382764006&lt;BR /&gt;Mar_2018 28230 746.38890 1.0956 0.0194 1.0576 1.1335 0.0379820518 0.0379820518&lt;BR /&gt;Apr_2018 26760 700.25026 1.0778 0.0188 1.0410 1.1146 0.0368349788 0.036834978&lt;BR /&gt;May_2018 27550 742.60845 1.0735 0.0195 1.0353 1.1118 0.0382656688 0.038265668&lt;BR /&gt;Jun_2018 25035 679.67669 1.0136 0.0187 0.9770 1.0502 0.0366360408 0.0366360408&lt;BR /&gt;Jul_2018 26160 716.09459 1.0352 0.0195 0.9970 1.0734 0.0381609915 0.0381609915&lt;BR /&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sgplot data=have;&lt;BR /&gt;band x=Month_year lower=ColLowerCL upper=ColUpperCL / transparency=0.5;&lt;BR /&gt;series x=Month_year y=ColPercent ;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thnaks&lt;/P&gt;
&lt;P&gt;Muni&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 21:05:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Line-graph-with-95-confidence-interval/m-p/788544#M252144</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-01-05T21:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: Line graph with 95% confidence interval</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Line-graph-with-95-confidence-interval/m-p/788546#M252146</link>
      <description>&lt;P&gt;Do you mean something like that:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=have;
HIGHLOW    x=Month_year LOW=ColLowerCL HIGH=ColUpperCL / TYPE=BAR transparency=0.5 BARWIDTH=0.5;
series x=Month_year y=ColPercent ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;B.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 21:09:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Line-graph-with-95-confidence-interval/m-p/788546#M252146</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2022-01-05T21:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: Line graph with 95% confidence interval</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Line-graph-with-95-confidence-interval/m-p/788550#M252149</link>
      <description>FYI - I would recommend changing that first column to a SAS date instead of a character and then having it formatted for display.</description>
      <pubDate>Wed, 05 Jan 2022 21:26:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Line-graph-with-95-confidence-interval/m-p/788550#M252149</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-01-05T21:26:04Z</dc:date>
    </item>
  </channel>
</rss>

