<?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 Plot means with standard error bars from calculated data with PROC SGPLOT in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Plot-means-with-standard-error-bars-from-calculated-data-with/m-p/269587#M58153</link>
    <description>&lt;P&gt;I'm trying to use PROC SGPLOT to plot means w/ SE bars, per &lt;A href="http://support.sas.com/kb/42/542.html" target="_self"&gt;this code&lt;/A&gt;&amp;nbsp;(&amp;#3;Sample 42542: Plot means with standard error bars from calculated data with PROC SGPLOT).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I add a grouping variable so that there will be a line for each level of the group (e.g. Treatment and control)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 May 2016 21:56:56 GMT</pubDate>
    <dc:creator>_maldini_</dc:creator>
    <dc:date>2016-05-10T21:56:56Z</dc:date>
    <item>
      <title>Plot means with standard error bars from calculated data with PROC SGPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Plot-means-with-standard-error-bars-from-calculated-data-with/m-p/269587#M58153</link>
      <description>&lt;P&gt;I'm trying to use PROC SGPLOT to plot means w/ SE bars, per &lt;A href="http://support.sas.com/kb/42/542.html" target="_self"&gt;this code&lt;/A&gt;&amp;nbsp;(&amp;#3;Sample 42542: Plot means with standard error bars from calculated data with PROC SGPLOT).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I add a grouping variable so that there will be a line for each level of the group (e.g. Treatment and control)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2016 21:56:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Plot-means-with-standard-error-bars-from-calculated-data-with/m-p/269587#M58153</guid>
      <dc:creator>_maldini_</dc:creator>
      <dc:date>2016-05-10T21:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: Plot means with standard error bars from calculated data with PROC SGPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Plot-means-with-standard-error-bars-from-calculated-data-with/m-p/269592#M58155</link>
      <description>&lt;P&gt;It sounds like you have two BY variables. So for the calculations make sure to specify the two BY variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For SGPLOT try the GROUP= GROUP_VAR on the scatter statement.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check the doc for the SCATTER statement for more details.&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2016 22:38:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Plot-means-with-standard-error-bars-from-calculated-data-with/m-p/269592#M58155</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-05-10T22:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Plot means with standard error bars from calculated data with PROC SGPLOT</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Plot-means-with-standard-error-bars-from-calculated-data-with/m-p/269648#M58167</link>
      <description>&lt;P&gt;Use GROUP= option . Check this out.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2012/03/30/cluster-groups/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/2012/03/30/cluster-groups/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
infile cards expandtabs truncover;
input drug $ group$ mean lcl ucl;
cards;
A Treat   10  6 14
A Placebo  8  6 10
B Treat   20  16 24
B Placebo  12  6 14
;
run;
proc sgplot data=have;
  scatter x=drug y=mean/ yerrorlower=lcl yerrorupper=ucl group=group
          markerattrs=(symbol=circlefilled)
          groupdisplay=cluster clusterwidth=0.5 errorbarattrs=(thickness=1);
  series  x=drug y=mean/ lineattrs=(pattern=solid) group=group
          groupdisplay=cluster clusterwidth=0.5 lineattrs=(pattern=dash thickness=2)
           name='s';
  yaxis label='Mean with 95% CL' grid;
  xaxis display=(nolabel);
  keylegend 's' / title='Treatment';
  run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 May 2016 06:50:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Plot-means-with-standard-error-bars-from-calculated-data-with/m-p/269648#M58167</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-05-11T06:50:36Z</dc:date>
    </item>
  </channel>
</rss>

