<?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 Distribution on Grouped Data in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Calculating-Distribution-on-Grouped-Data/m-p/228350#M16643</link>
    <description>Yeah, assign some value to the groups, i.e. 0-4 =1, 5-9=2, etc. Then use proc means with the population as a WEIGHT variable.  The value you get, i.e. 2.4 is the group coded to, i.e. 5-9 age group.</description>
    <pubDate>Sun, 04 Oct 2015 17:01:33 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2015-10-04T17:01:33Z</dc:date>
    <item>
      <title>Calculating Distribution on Grouped Data</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Calculating-Distribution-on-Grouped-Data/m-p/228335#M16636</link>
      <description>&lt;P&gt;I want to run distribution analysis on the attached data file. Data in the column 'Age Group' are the age ranges in a population and the next column indicates the number of people in that respective age range. How can I calculate the distribution analysis to identify mean age and other distribution stats? I can't add the age group as Frequency count as it is a string. Please help. Thank you!&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/11989i3005696F94ACB563/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="DataFile.PNG" title="DataFile.PNG" /&gt;</description>
      <pubDate>Sat, 03 Oct 2015 21:31:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Calculating-Distribution-on-Grouped-Data/m-p/228335#M16636</guid>
      <dc:creator>Charlie_K</dc:creator>
      <dc:date>2015-10-03T21:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Distribution on Grouped Data</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Calculating-Distribution-on-Grouped-Data/m-p/228336#M16637</link>
      <description>Age Group isn't a frequency isn't a CLASS or BY variable. Add it to the BY or CLASS Group and Population to the ANALYSIS section.</description>
      <pubDate>Sat, 03 Oct 2015 22:36:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Calculating-Distribution-on-Grouped-Data/m-p/228336#M16637</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-10-03T22:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Distribution on Grouped Data</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Calculating-Distribution-on-Grouped-Data/m-p/228337#M16638</link>
      <description>&lt;P&gt;Thank you for the reply. If I add the age group to 'Group analysis by', it gives the population mean for each age group. How can I get the mean age or age group of the total population?&lt;/P&gt;</description>
      <pubDate>Sun, 04 Oct 2015 00:52:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Calculating-Distribution-on-Grouped-Data/m-p/228337#M16638</guid>
      <dc:creator>Charlie_K</dc:creator>
      <dc:date>2015-10-04T00:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Distribution on Grouped Data</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Calculating-Distribution-on-Grouped-Data/m-p/228341#M16639</link>
      <description>Do you have the age variable where it hasn't been grouped/categorized? That would be preferable.</description>
      <pubDate>Sun, 04 Oct 2015 02:31:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Calculating-Distribution-on-Grouped-Data/m-p/228341#M16639</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-10-04T02:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Distribution on Grouped Data</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Calculating-Distribution-on-Grouped-Data/m-p/228342#M16640</link>
      <description>&lt;P&gt;Sadly, No. Is there any way I can achieve this with the data I have? Pls help!&lt;/P&gt;</description>
      <pubDate>Sun, 04 Oct 2015 02:36:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Calculating-Distribution-on-Grouped-Data/m-p/228342#M16640</guid>
      <dc:creator>Charlie_K</dc:creator>
      <dc:date>2015-10-04T02:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Distribution on Grouped Data</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Calculating-Distribution-on-Grouped-Data/m-p/228345#M16641</link>
      <description>&lt;P&gt;One approach would be to derive the mid-point of age group and then take the mean of that. You will be calculating the mean of a variable that is not truly continuous, but is probably the best you can do with the data you have.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Oct 2015 07:05:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Calculating-Distribution-on-Grouped-Data/m-p/228345#M16641</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2015-10-04T07:05:01Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Distribution on Grouped Data</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Calculating-Distribution-on-Grouped-Data/m-p/228347#M16642</link>
      <description>&lt;P&gt;Thank you for your reply! I am not sure how to carry out your solution. Assuming the age group is 0-9, should I take the mean age as 5? That way, if I have 10 age groups (0-9,10-19, 20-29 and so on..) Should I have 10 mean ages? I just want to identify one mean age in my case age group which the Avg age falls into.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Oct 2015 14:04:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Calculating-Distribution-on-Grouped-Data/m-p/228347#M16642</guid>
      <dc:creator>Charlie_K</dc:creator>
      <dc:date>2015-10-04T14:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Distribution on Grouped Data</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Calculating-Distribution-on-Grouped-Data/m-p/228350#M16643</link>
      <description>Yeah, assign some value to the groups, i.e. 0-4 =1, 5-9=2, etc. Then use proc means with the population as a WEIGHT variable.  The value you get, i.e. 2.4 is the group coded to, i.e. 5-9 age group.</description>
      <pubDate>Sun, 04 Oct 2015 17:01:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Calculating-Distribution-on-Grouped-Data/m-p/228350#M16643</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-10-04T17:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Distribution on Grouped Data</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Calculating-Distribution-on-Grouped-Data/m-p/228367#M16644</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I tried this with a different age data set where I have individual ages and created age groups. I assigned 1,2,3.. to each group and calculated the age mean. Then I calculated the actual age mean with the individual age data set I have. When I compare the actual&amp;nbsp;age mean and the group age mean I got from assigning a number to each group, the individual age mean does not fall into mean&amp;nbsp;age group.&lt;/P&gt;</description>
      <pubDate>Sun, 04 Oct 2015 23:26:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Calculating-Distribution-on-Grouped-Data/m-p/228367#M16644</guid>
      <dc:creator>Charlie_K</dc:creator>
      <dc:date>2015-10-04T23:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Distribution on Grouped Data</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Calculating-Distribution-on-Grouped-Data/m-p/228440#M16648</link>
      <description>Did you weight the data by the population number?</description>
      <pubDate>Mon, 05 Oct 2015 14:35:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Calculating-Distribution-on-Grouped-Data/m-p/228440#M16648</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-10-05T14:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Distribution on Grouped Data</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Calculating-Distribution-on-Grouped-Data/m-p/228456#M16650</link>
      <description>&lt;P&gt;Yes. I multiplied each group number assigned (1,2,3...) by the corresponding population of the group. Is that what you wanted me to do?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2015 15:56:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Calculating-Distribution-on-Grouped-Data/m-p/228456#M16650</guid>
      <dc:creator>Charlie_K</dc:creator>
      <dc:date>2015-10-05T15:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Distribution on Grouped Data</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Calculating-Distribution-on-Grouped-Data/m-p/228548#M16652</link>
      <description>No, use the weight option in proc means though I think you'll get similar results. I tested it and it comes close - within 1 category. I'm not aware of a different method but the average of a categorical variable isn't a common request. Consider the median instead thats easier to report/explain anyways.</description>
      <pubDate>Mon, 05 Oct 2015 23:28:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Calculating-Distribution-on-Grouped-Data/m-p/228548#M16652</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-10-05T23:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Distribution on Grouped Data</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Calculating-Distribution-on-Grouped-Data/m-p/228563#M16653</link>
      <description>&lt;P&gt;I am sorry, but I am very new to SAS. How should I calculate proc mean in enterprise guide?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2015 01:15:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Calculating-Distribution-on-Grouped-Data/m-p/228563#M16653</guid>
      <dc:creator>Charlie_K</dc:creator>
      <dc:date>2015-10-06T01:15:34Z</dc:date>
    </item>
  </channel>
</rss>

