<?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: Performing calculations with counts in SAS Health and Life Sciences</title>
    <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Performing-calculations-with-counts/m-p/3602#M300</link>
    <description>If you'd raised this in the Enterprise Guide forum my answer would have been slightly different, although the result would be the same.&lt;BR /&gt;
&lt;BR /&gt;
It seems you want to perform a frequency analysis, you want a percentage for the frequency as a proportion of the population, and you want to perform it separately for each level of a variable that classifies a group to observe.&lt;BR /&gt;
&lt;BR /&gt;
In Enterprise Guide there is a standard analysis task that will do everything for you.  In Foundation SAS, your can simply run code similar to the following:&lt;BR /&gt;
&lt;BR /&gt;
  Proc Freq Data = MYLIB.MYDATA  Missing;&lt;BR /&gt;
    Tables  CLASSVAR;&lt;BR /&gt;
  Run;&lt;BR /&gt;
&lt;BR /&gt;
This will produce frequencies for each level of classvar, and percentages for each class as well as the whole population.&lt;BR /&gt;
&lt;BR /&gt;
Kind regards&lt;BR /&gt;
&lt;BR /&gt;
David</description>
    <pubDate>Tue, 26 Jun 2007 09:44:33 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2007-06-26T09:44:33Z</dc:date>
    <item>
      <title>Performing calculations with counts</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Performing-calculations-with-counts/m-p/3601#M299</link>
      <description>I'm pretty new to SAS coding and I'm a bit lost right now.  How would you perform calculations with counts. For example, I want to get the rate of falls by type (same level falls, different level falls, etc... I created a variable to differentiate for each type of fall (same_fall, diff_fall).&lt;BR /&gt;
&lt;BR /&gt;
How would I add up the type of falls and then divide it by the population? &lt;BR /&gt;
&lt;BR /&gt;
Thanks,</description>
      <pubDate>Mon, 25 Jun 2007 13:51:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Performing-calculations-with-counts/m-p/3601#M299</guid>
      <dc:creator>tony_miami</dc:creator>
      <dc:date>2007-06-25T13:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Performing calculations with counts</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Performing-calculations-with-counts/m-p/3602#M300</link>
      <description>If you'd raised this in the Enterprise Guide forum my answer would have been slightly different, although the result would be the same.&lt;BR /&gt;
&lt;BR /&gt;
It seems you want to perform a frequency analysis, you want a percentage for the frequency as a proportion of the population, and you want to perform it separately for each level of a variable that classifies a group to observe.&lt;BR /&gt;
&lt;BR /&gt;
In Enterprise Guide there is a standard analysis task that will do everything for you.  In Foundation SAS, your can simply run code similar to the following:&lt;BR /&gt;
&lt;BR /&gt;
  Proc Freq Data = MYLIB.MYDATA  Missing;&lt;BR /&gt;
    Tables  CLASSVAR;&lt;BR /&gt;
  Run;&lt;BR /&gt;
&lt;BR /&gt;
This will produce frequencies for each level of classvar, and percentages for each class as well as the whole population.&lt;BR /&gt;
&lt;BR /&gt;
Kind regards&lt;BR /&gt;
&lt;BR /&gt;
David</description>
      <pubDate>Tue, 26 Jun 2007 09:44:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/Performing-calculations-with-counts/m-p/3602#M300</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-06-26T09:44:33Z</dc:date>
    </item>
  </channel>
</rss>

