<?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: Adding Standard errors on graphs in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Adding-Standard-errors-on-graphs/m-p/735748#M21389</link>
    <description>&lt;P&gt;Thanks, I just wanted to know which solution is better, is it better using the&amp;nbsp;LCLM&amp;nbsp; and&amp;nbsp;UCLM&amp;nbsp; in proc means or using mean_age +/- 2*stderr to get the confident intervals&lt;/P&gt;</description>
    <pubDate>Tue, 20 Apr 2021 20:08:44 GMT</pubDate>
    <dc:creator>Anita_n</dc:creator>
    <dc:date>2021-04-20T20:08:44Z</dc:date>
    <item>
      <title>Adding Standard errors on graphs</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Adding-Standard-errors-on-graphs/m-p/735537#M21382</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;
&lt;P&gt;I have a graph showing the mean ages in different diagnosis years. I wish to add standard errors to this plot. Is it right to do that with proc means like below and then deduct or add these values from/to the maen ages to get the upper and lower limits. Or do I say lower= mean_age- 2*stderr ,&lt;/P&gt;
&lt;P&gt;and upper= mean_age+2*stderr. Why is this standard error important?&lt;/P&gt;
&lt;PRE&gt;proc means data=mydata noprint;
var age;
class year sex;
output out = myoutdat mean=mean_age stderr=stderr ;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 13:10:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Adding-Standard-errors-on-graphs/m-p/735537#M21382</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2021-04-20T13:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Standard errors on graphs</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Adding-Standard-errors-on-graphs/m-p/735557#M21386</link>
      <description>proc means data=sashelp.class noprint;&lt;BR /&gt;var age;&lt;BR /&gt;class  sex;&lt;BR /&gt;output out = myoutdat mean=mean_age stderr=stderr ;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;data myoutdat;&lt;BR /&gt; set myoutdat;&lt;BR /&gt; lower= mean_age- 2*stderr ;&lt;BR /&gt; higher= mean_age+ 2*stderr ;&lt;BR /&gt;run;&lt;BR /&gt;proc sgplot data=myoutdat;&lt;BR /&gt;scatter x=sex y=mean_age/yerrorlower=lower yerrorupper=higher;&lt;BR /&gt;run;</description>
      <pubDate>Tue, 20 Apr 2021 13:46:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Adding-Standard-errors-on-graphs/m-p/735557#M21386</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-04-20T13:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Standard errors on graphs</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Adding-Standard-errors-on-graphs/m-p/735748#M21389</link>
      <description>&lt;P&gt;Thanks, I just wanted to know which solution is better, is it better using the&amp;nbsp;LCLM&amp;nbsp; and&amp;nbsp;UCLM&amp;nbsp; in proc means or using mean_age +/- 2*stderr to get the confident intervals&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 20:08:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Adding-Standard-errors-on-graphs/m-p/735748#M21389</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2021-04-20T20:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Standard errors on graphs</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Adding-Standard-errors-on-graphs/m-p/735795#M21396</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/168930"&gt;@Anita_n&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks, I just wanted to know which solution is better, is it better using the&amp;nbsp;LCLM&amp;nbsp; and&amp;nbsp;UCLM&amp;nbsp; in proc means or using mean_age +/- 2*stderr to get the confident intervals&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Compare the two values for some data. See which makes sense for your purpose. There's also CLM that you could add/subtract from the mean to get a limit to display.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sometimes one of the limits may not make sense and needs to be censored. For instance if your data relates to patient weight and you get a LCLM of -5 (pounds or kilograms) does that make sense? A weight for a person in the negative range is highly problematic (and likely would come from data with extreme values, small sample and possibly a mix of adults and children).&lt;/P&gt;
&lt;P&gt;So "best" comes from "know your data" and making decisions to show the story you intend.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 21:48:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Adding-Standard-errors-on-graphs/m-p/735795#M21396</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-04-20T21:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Standard errors on graphs</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Adding-Standard-errors-on-graphs/m-p/735832#M21399</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;yes, you are right I compared the values and realised they are very similar, there just very very&amp;nbsp;&lt;SPAN style="font-family: inherit;"&gt;small differences. In my case there were no negative values for the mean ages. I think I will just choose one of the methods&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 06:23:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Adding-Standard-errors-on-graphs/m-p/735832#M21399</guid>
      <dc:creator>Anita_n</dc:creator>
      <dc:date>2021-04-21T06:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: Adding Standard errors on graphs</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Adding-Standard-errors-on-graphs/m-p/735921#M21401</link>
      <description>I would prefer to " LCLM  and UCLM ".</description>
      <pubDate>Wed, 21 Apr 2021 12:02:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Adding-Standard-errors-on-graphs/m-p/735921#M21401</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-04-21T12:02:04Z</dc:date>
    </item>
  </channel>
</rss>

