<?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 How to compare multiple rates in sas? Help! in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-compare-multiple-rates-in-sas-Help/m-p/401602#M20938</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;I need advice on how to compare multiple rates, what test do I need, and what's the sas code for it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The quesiton to answer is:&lt;/P&gt;
&lt;P&gt;Whether average rates&amp;nbsp;of incidents (per 1000 days)&amp;nbsp;are significantly different across different care types.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Background (I madeup to give you a context of this analysis):&lt;/P&gt;
&lt;P&gt;in 19xx, number of children are placed into 6 different type of cares, the duration of each care for each child is random. There are number of incidents happened and recorded. So to compare in&amp;nbsp;which type of&amp;nbsp;care that children had less likely experience an incident. Data collected as below.&lt;/P&gt;
&lt;TABLE width="759"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="79"&gt;Care type&lt;/TD&gt;
&lt;TD width="104"&gt;Num. of Chilren&lt;/TD&gt;
&lt;TD width="90"&gt;Num. of cares&lt;/TD&gt;
&lt;TD width="158"&gt;Number of days in care&lt;/TD&gt;
&lt;TD width="176"&gt;Number of incidents in care&lt;/TD&gt;
&lt;TD width="152"&gt;average rate of incidents (per 1000 days)&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD style="font-weight: 400;"&gt;Type1&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;900&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;1000&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;100000&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;543&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;5.43&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD style="font-weight: 400;"&gt;Type2&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;550&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;600&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;50000&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;234&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;4.68&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD style="font-weight: 400;"&gt;Type3&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;150&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;200&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;10000&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;76&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;7.6&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD style="font-weight: 400;"&gt;Type4&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;160&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;200&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;5000&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;25&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD style="font-weight: 400;"&gt;Type5&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;35&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;50&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;1000&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;11&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;11&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD style="font-weight: 400;"&gt;Type6&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;15&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;20&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;500&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;6&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;12&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 06 Oct 2017 04:08:00 GMT</pubDate>
    <dc:creator>R_E</dc:creator>
    <dc:date>2017-10-06T04:08:00Z</dc:date>
    <item>
      <title>How to compare multiple rates in sas? Help!</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-compare-multiple-rates-in-sas-Help/m-p/401602#M20938</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;I need advice on how to compare multiple rates, what test do I need, and what's the sas code for it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The quesiton to answer is:&lt;/P&gt;
&lt;P&gt;Whether average rates&amp;nbsp;of incidents (per 1000 days)&amp;nbsp;are significantly different across different care types.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Background (I madeup to give you a context of this analysis):&lt;/P&gt;
&lt;P&gt;in 19xx, number of children are placed into 6 different type of cares, the duration of each care for each child is random. There are number of incidents happened and recorded. So to compare in&amp;nbsp;which type of&amp;nbsp;care that children had less likely experience an incident. Data collected as below.&lt;/P&gt;
&lt;TABLE width="759"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="79"&gt;Care type&lt;/TD&gt;
&lt;TD width="104"&gt;Num. of Chilren&lt;/TD&gt;
&lt;TD width="90"&gt;Num. of cares&lt;/TD&gt;
&lt;TD width="158"&gt;Number of days in care&lt;/TD&gt;
&lt;TD width="176"&gt;Number of incidents in care&lt;/TD&gt;
&lt;TD width="152"&gt;average rate of incidents (per 1000 days)&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD style="font-weight: 400;"&gt;Type1&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;900&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;1000&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;100000&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;543&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;5.43&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD style="font-weight: 400;"&gt;Type2&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;550&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;600&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;50000&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;234&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;4.68&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD style="font-weight: 400;"&gt;Type3&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;150&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;200&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;10000&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;76&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;7.6&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD style="font-weight: 400;"&gt;Type4&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;160&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;200&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;5000&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;25&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;5&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD style="font-weight: 400;"&gt;Type5&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;35&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;50&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;1000&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;11&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;11&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD style="font-weight: 400;"&gt;Type6&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;15&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;20&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;500&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;6&lt;/TD&gt;
&lt;TD style="font-weight: 400;"&gt;12&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 04:08:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-compare-multiple-rates-in-sas-Help/m-p/401602#M20938</guid>
      <dc:creator>R_E</dc:creator>
      <dc:date>2017-10-06T04:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare multiple rates in sas? Help!</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-compare-multiple-rates-in-sas-Help/m-p/401627#M20939</link>
      <description>&lt;P&gt;The answer is already there. Type2 is the least likely, and Type6 the most likely to have an incident.&lt;/P&gt;
&lt;P&gt;Although I'd say that the samples for Type5 and Type6 are too small for getting a statistically relevant result.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 06:44:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-compare-multiple-rates-in-sas-Help/m-p/401627#M20939</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-10-06T06:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare multiple rates in sas? Help!</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-compare-multiple-rates-in-sas-Help/m-p/401701#M20945</link>
      <description>&lt;P&gt;The trick for such data model the number of incidents by poisson regression. Then use log(days/1000) as offset to specify the time at risk and to scale the estimate to rate per 1000 days. From the following code you get confidence intervals, pairwise comparisons and a test of all dayscares has same rate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data daycare;
  input Care_type $ NumofChilren Numofcares Numberofdaysincare Numberofincidentsincare averagerate ;
  offset=log(numberofdaysincare/1000);
  cards;
Type1 900 1000 100000 543 5.43 
Type2 550 600 50000 234 4.68 
Type3 150 200 10000 76 7.6 
Type4 160 200 5000 25 5 
Type5 35 50 1000 11 11 
Type6 15 20 500 6 12 
;
run;
proc genmod data=daycare;
  class care_type;
  model numberofincidentsincare=care_type/dist=poisson link=log offset=offset noint type3;
  lsmeans care_type/diff exp cl;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 Oct 2017 11:35:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-compare-multiple-rates-in-sas-Help/m-p/401701#M20945</guid>
      <dc:creator>JacobSimonsen</dc:creator>
      <dc:date>2017-10-06T11:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare multiple rates in sas? Help!</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-compare-multiple-rates-in-sas-Help/m-p/401798#M20951</link>
      <description>&lt;P&gt;&lt;A href="http://support.sas.com/kb/37/228.html" target="_blank"&gt;http://support.sas.com/kb/37/228.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit: fixed the link.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 15:07:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-compare-multiple-rates-in-sas-Help/m-p/401798#M20951</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-10-06T15:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare multiple rates in sas? Help!</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-compare-multiple-rates-in-sas-Help/m-p/401886#M20953</link>
      <description>&lt;P&gt;I made a mistake: There should not be "noint" as option. Because only without noint the type3 test is testing the hypotheses that all types of daycare is the same. And with noint included it is testing if all daycare have a rate =1 - which is not a relevant test.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 18:53:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-compare-multiple-rates-in-sas-Help/m-p/401886#M20953</guid>
      <dc:creator>JacobSimonsen</dc:creator>
      <dc:date>2017-10-06T18:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare multiple rates in sas? Help!</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-compare-multiple-rates-in-sas-Help/m-p/402306#M20968</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;, can you explain why you put this link here? As I see it, the present problem is not binomial&amp;nbsp;regression (or logistic regression). It is rate regression.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Actually, by conditioning on the sum of events it is possible to solve the problem with binomial regression. But that is to make it far more complicated than necessary and the&amp;nbsp;link does not explain how that works.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2017 10:17:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-compare-multiple-rates-in-sas-Help/m-p/402306#M20968</guid>
      <dc:creator>JacobSimonsen</dc:creator>
      <dc:date>2017-10-09T10:17:53Z</dc:date>
    </item>
  </channel>
</rss>

