<?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: Standard Error (SE) in 'proc sgplot' in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Standard-Error-SE-in-proc-sgplot/m-p/409936#M14031</link>
    <description>&lt;P&gt;The main options you want to use on the VLINE statement are the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. LIMITSTAT = CLM | STDERR | STDDEV -- for your case, use STDERR&lt;/P&gt;
&lt;P&gt;2. NUMSTD = &amp;lt;number&amp;gt; -- This is a multiplier for STDERR or STDDEV. The default is 1, which mean you would get one standard error in your case.&lt;/P&gt;
&lt;P&gt;3. LIMITS = UPPER | LOWER | BOTH -- the default is BOTH, just like in your picture.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a simple example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=sashelp.class;
vline age / response=weight stat=mean limitstat=stderr numstd=2;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You can also modify the visual attributes of the error bars using the ERRORATTRS option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
    <pubDate>Thu, 02 Nov 2017 17:22:17 GMT</pubDate>
    <dc:creator>DanH_sas</dc:creator>
    <dc:date>2017-11-02T17:22:17Z</dc:date>
    <item>
      <title>Standard Error (SE) in 'proc sgplot'</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Standard-Error-SE-in-proc-sgplot/m-p/409935#M14030</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could you please help to code the 'Standard Error' for the gsplot. The plot has to be as below. What should be a standard of the dataset? What are the options for proc sgplot?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="large (3).jpg" style="width: 138px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18979i7FE5FFEDEE332445/image-size/large?v=v2&amp;amp;px=999" role="button" title="large (3).jpg" alt="large (3).jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Mar 2018 18:40:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Standard-Error-SE-in-proc-sgplot/m-p/409935#M14030</guid>
      <dc:creator>DmytroYermak</dc:creator>
      <dc:date>2018-03-05T18:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: Standard Error (SE) in 'proc sgplot'</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Standard-Error-SE-in-proc-sgplot/m-p/409936#M14031</link>
      <description>&lt;P&gt;The main options you want to use on the VLINE statement are the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. LIMITSTAT = CLM | STDERR | STDDEV -- for your case, use STDERR&lt;/P&gt;
&lt;P&gt;2. NUMSTD = &amp;lt;number&amp;gt; -- This is a multiplier for STDERR or STDDEV. The default is 1, which mean you would get one standard error in your case.&lt;/P&gt;
&lt;P&gt;3. LIMITS = UPPER | LOWER | BOTH -- the default is BOTH, just like in your picture.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a simple example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=sashelp.class;
vline age / response=weight stat=mean limitstat=stderr numstd=2;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You can also modify the visual attributes of the error bars using the ERRORATTRS option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 17:22:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Standard-Error-SE-in-proc-sgplot/m-p/409936#M14031</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2017-11-02T17:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Standard Error (SE) in 'proc sgplot'</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Standard-Error-SE-in-proc-sgplot/m-p/409940#M14032</link>
      <description>&lt;P&gt;Thank you for the reply! Could you please say how to modify your code to draw two&amp;nbsp;lines: one for 'male', another for 'female'.&lt;/P&gt;&lt;P&gt;And another question: if I have SE calculated in previous steps (this is an obligate rule) how to put SE on the plot in this case?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 17:43:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Standard-Error-SE-in-proc-sgplot/m-p/409940#M14032</guid>
      <dc:creator>DmytroYermak</dc:creator>
      <dc:date>2017-11-02T17:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Standard Error (SE) in 'proc sgplot'</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Standard-Error-SE-in-proc-sgplot/m-p/409942#M14033</link>
      <description>&lt;P&gt;What does your data look like?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps something like this example?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/42/542.html" target="_blank"&gt;http://support.sas.com/kb/42/542.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2017 17:28:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Standard-Error-SE-in-proc-sgplot/m-p/409942#M14033</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2017-11-02T17:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Standard Error (SE) in 'proc sgplot'</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Standard-Error-SE-in-proc-sgplot/m-p/410044#M14037</link>
      <description>&lt;P&gt;Thank you for the last link. I used it:&lt;/P&gt;</description>
      <pubDate>Mon, 05 Mar 2018 10:34:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Standard-Error-SE-in-proc-sgplot/m-p/410044#M14037</guid>
      <dc:creator>DmytroYermak</dc:creator>
      <dc:date>2018-03-05T10:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: Standard Error (SE) in 'proc sgplot'</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Standard-Error-SE-in-proc-sgplot/m-p/410068#M14047</link>
      <description>&lt;P&gt;Try something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table classGraph as
select 
    sex, 
    age, 
    mean(weight) as meanWeight, 
    mean(weight) - std(weight) as lowStdWeight,    
    mean(weight) + std(weight) as highStdWeight
from sashelp.class
group by sex, age;
quit;

proc sgplot data=classGraph;
scatter x=age y=meanWeight / 
    yerrorlower=lowStdWeight yerrorupper=highStdWeight group=sex;
series x=age y=meanWeight / lineattrs=(pattern=solid) group=sex;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 03 Nov 2017 03:37:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Standard-Error-SE-in-proc-sgplot/m-p/410068#M14047</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2017-11-03T03:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: Standard Error (SE) in 'proc sgplot'</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Standard-Error-SE-in-proc-sgplot/m-p/410069#M14048</link>
      <description>&lt;P&gt;invalue defines an INFORMAT. You need a VALUE statement to define a format in proc format.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2017 03:39:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Standard-Error-SE-in-proc-sgplot/m-p/410069#M14048</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2017-11-03T03:39:49Z</dc:date>
    </item>
  </channel>
</rss>

