<?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: Mean by group in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Mean-by-group/m-p/588890#M75918</link>
    <description>&lt;P&gt;Looks like the code should work. What is wrong with the results? Please be very specific and show us the results so we can see what you are seeing.&lt;/P&gt;</description>
    <pubDate>Sun, 15 Sep 2019 21:53:40 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2019-09-15T21:53:40Z</dc:date>
    <item>
      <title>Mean by group</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Mean-by-group/m-p/588884#M75917</link>
      <description>&lt;P&gt;Hi, I am trying to find mean by group of my data. I have one indicator variable (named CR) taking value of either 0 or 1. I have another variable of deciles (named decile) taking value from 0 to 9. I am trying to find out the mean of CR within each decile. I did the following:&lt;/P&gt;&lt;P&gt;proc means data= DATA. CR mean;&lt;/P&gt;&lt;P&gt;var CR;&lt;/P&gt;&lt;P&gt;by decile;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;Can you please let me know what am I doing wrong since I am not getting the desired output?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Sun, 15 Sep 2019 21:33:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Mean-by-group/m-p/588884#M75917</guid>
      <dc:creator>sanrim</dc:creator>
      <dc:date>2019-09-15T21:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: Mean by group</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Mean-by-group/m-p/588890#M75918</link>
      <description>&lt;P&gt;Looks like the code should work. What is wrong with the results? Please be very specific and show us the results so we can see what you are seeing.&lt;/P&gt;</description>
      <pubDate>Sun, 15 Sep 2019 21:53:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Mean-by-group/m-p/588890#M75918</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-09-15T21:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Mean by group</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Mean-by-group/m-p/588912#M75919</link>
      <description>&lt;P&gt;The main thing you're doing wrong is not reading the log to see what messages SAS is giving you.&amp;nbsp; Nobody here can figure that out, so it would be a good idea to post the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a small list of relevant items to consider:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;You have a space in the middle of DATA. CR where there shouldn't be any spaces&lt;/LI&gt;
&lt;LI&gt;Is the name of your data set CR?&lt;/LI&gt;
&lt;LI&gt;Is your data set saved permanently?&amp;nbsp; If so, do you know how to write a LIBNAME statement to refer to the folder where it resides?&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Sun, 15 Sep 2019 23:51:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Mean-by-group/m-p/588912#M75919</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-09-15T23:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Mean by group</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Mean-by-group/m-p/588943#M75920</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/290450"&gt;@sanrim&lt;/a&gt;&amp;nbsp;hi and welcome to the SAS Community &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you post some sample of your data and what you want the desired result to look like? Makes it much easier for you to demonstrate what you mean and much easier for us to provide a usable code answer.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2019 05:53:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Mean-by-group/m-p/588943#M75920</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-09-16T05:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: Mean by group</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Mean-by-group/m-p/589078#M75922</link>
      <description>&lt;P&gt;Thank you for the reply. I was able to solve the issue by sorting the deciles in ascending order.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2019 15:08:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Mean-by-group/m-p/589078#M75922</guid>
      <dc:creator>sanrim</dc:creator>
      <dc:date>2019-09-16T15:08:01Z</dc:date>
    </item>
  </channel>
</rss>

