<?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: Calculating mean + 1sd in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Calculating-mean-1sd/m-p/469876#M70832</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/105450"&gt;@pmpradhan&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I was thinking whether it is :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Procedure 1:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;proc means data=have;&lt;/P&gt;
&lt;P&gt;var pct_elderly;&lt;/P&gt;
&lt;P&gt;where x=1;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Procedure 2:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;data want;&lt;/P&gt;
&lt;P&gt;set have;&lt;/P&gt;
&lt;P&gt;high_elderly=(pct_elderly&amp;gt;=means+sd);&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc freq data=want;&lt;/P&gt;
&lt;P&gt;tables high_elderly;&lt;/P&gt;
&lt;P&gt;where x=1;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Did you even try these? Do they produce the answer you want? If not, state clearly what is missing from these answers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Specifically, what is wrong with your Procedure 1? It seems like it does what you are asking (although I'm not 100% clear on what you are asking)&lt;/P&gt;</description>
    <pubDate>Wed, 13 Jun 2018 10:52:53 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2018-06-13T10:52:53Z</dc:date>
    <item>
      <title>Calculating mean + 1sd</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Calculating-mean-1sd/m-p/469810#M70825</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My data looks like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;X&amp;nbsp; &amp;nbsp; &amp;nbsp;pct_Elderly&amp;nbsp;&lt;/STRONG&gt; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; 1.1&lt;/P&gt;&lt;P&gt;0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2.0&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3.0&lt;/P&gt;&lt;P&gt;0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4.8&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9.5&lt;/P&gt;&lt;P&gt;0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.9&lt;/P&gt;&lt;P&gt;0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3.3&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;70.6&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; 19.8&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to populate a table like:&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;X&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Total&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;high elderly(+1 SD)&amp;nbsp;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;?&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All suggestions welcomed!&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 01:09:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Calculating-mean-1sd/m-p/469810#M70825</guid>
      <dc:creator>pmpradhan</dc:creator>
      <dc:date>2018-06-13T01:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating mean + 1sd</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Calculating-mean-1sd/m-p/469812#M70826</link>
      <description>&lt;P&gt;PROC MEANS&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 01:40:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Calculating-mean-1sd/m-p/469812#M70826</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-06-13T01:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating mean + 1sd</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Calculating-mean-1sd/m-p/469816#M70827</link>
      <description>What are the rules? What exactly are you having trouble with? Your last question had an example of PROC MEANS and getting output, does that not work here as well for some reason?  &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Jun 2018 02:06:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Calculating-mean-1sd/m-p/469816#M70827</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-06-13T02:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating mean + 1sd</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Calculating-mean-1sd/m-p/469819#M70828</link>
      <description>&lt;P&gt;I was thinking whether it is :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Procedure 1:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;proc means data=have;&lt;/P&gt;&lt;P&gt;var pct_elderly;&lt;/P&gt;&lt;P&gt;where x=1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Procedure 2:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;set have;&lt;/P&gt;&lt;P&gt;high_elderly=(pct_elderly&amp;gt;=means+sd);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc freq data=want;&lt;/P&gt;&lt;P&gt;tables high_elderly;&lt;/P&gt;&lt;P&gt;where x=1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 02:11:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Calculating-mean-1sd/m-p/469819#M70828</guid>
      <dc:creator>pmpradhan</dc:creator>
      <dc:date>2018-06-13T02:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating mean + 1sd</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Calculating-mean-1sd/m-p/469820#M70829</link>
      <description>&lt;P&gt;Those are very different. Based on the data you presented, what number are you expecting? What are the business rules?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the second approach, I don't see the mean/sd so not sure where you're expecting that to come from and I wouldn't expect that to work. Does it work, or return errors?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 02:14:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Calculating-mean-1sd/m-p/469820#M70829</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-06-13T02:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating mean + 1sd</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Calculating-mean-1sd/m-p/469876#M70832</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/105450"&gt;@pmpradhan&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I was thinking whether it is :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Procedure 1:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;proc means data=have;&lt;/P&gt;
&lt;P&gt;var pct_elderly;&lt;/P&gt;
&lt;P&gt;where x=1;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Procedure 2:&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;data want;&lt;/P&gt;
&lt;P&gt;set have;&lt;/P&gt;
&lt;P&gt;high_elderly=(pct_elderly&amp;gt;=means+sd);&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc freq data=want;&lt;/P&gt;
&lt;P&gt;tables high_elderly;&lt;/P&gt;
&lt;P&gt;where x=1;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Did you even try these? Do they produce the answer you want? If not, state clearly what is missing from these answers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Specifically, what is wrong with your Procedure 1? It seems like it does what you are asking (although I'm not 100% clear on what you are asking)&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jun 2018 10:52:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Calculating-mean-1sd/m-p/469876#M70832</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-06-13T10:52:53Z</dc:date>
    </item>
  </channel>
</rss>

