<?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: two sample tests on rates of infection in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/two-sample-tests-on-rates-of-infection/m-p/889220#M44064</link>
    <description>OK, I will create an new one, thank you!</description>
    <pubDate>Mon, 14 Aug 2023 18:18:31 GMT</pubDate>
    <dc:creator>SAS-questioner</dc:creator>
    <dc:date>2023-08-14T18:18:31Z</dc:date>
    <item>
      <title>two sample tests on rates of infection</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/two-sample-tests-on-rates-of-infection/m-p/282404#M14884</link>
      <description>&lt;P&gt;I'm comparing infection rates per 1000 device days for two sets of data.&amp;nbsp; I want to determine whether a new treatment reduced the infection rate.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is how to compare the RATES?&amp;nbsp; The mean rate should be calculated as sum(all infections)/sum(all device days), NOT just the mean of the monthly rates.&amp;nbsp; But I am not sure how to perform a Wilcoxon test and report the results using the rates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I originally ran the test on the number of monthly infections, but decided the rate would be more appropriate because the number of device days varies widely each month.&amp;nbsp; However, when I run the test on the rates, the mean is calculated by averaging the rates.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any suggestions is greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2016 12:57:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/two-sample-tests-on-rates-of-infection/m-p/282404#M14884</guid>
      <dc:creator>tmtemples</dc:creator>
      <dc:date>2016-07-06T12:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: two sample tests on rates of infection</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/two-sample-tests-on-rates-of-infection/m-p/282427#M14885</link>
      <description>&lt;P&gt;One approach is to use PROC GENMOD to model the rates and include the grouping variable as a CLASS variable. You can then use the LSMEANS statement to estimate the ratio between the two groups. If the confidence interval for the rate ratio includes 1, then the data indicate that the group rates are not significantly different. if the CI does not include 1, you can conclude a difference in rates.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is a&lt;A href="http://support.sas.com/kb/24/188.html" target="_self"&gt; SAS Knowledge Base article that has data, example code, and a discussion&lt;/A&gt;. It uses a Poisson model for the rates, but you can also use a negative binomial or another model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think most researchers use the ratio of rates to do the comparison, but if for some reason you need to &lt;A href="http://support.sas.com/kb/37/344.html" target="_self"&gt;test the DIFFERENCE in rates&lt;/A&gt;, you can do that too.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2016 13:58:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/two-sample-tests-on-rates-of-infection/m-p/282427#M14885</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-07-06T13:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: two sample tests on rates of infection</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/two-sample-tests-on-rates-of-infection/m-p/282429#M14886</link>
      <description>thank you!</description>
      <pubDate>Wed, 06 Jul 2016 14:00:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/two-sample-tests-on-rates-of-infection/m-p/282429#M14886</guid>
      <dc:creator>tmtemples</dc:creator>
      <dc:date>2016-07-06T14:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: two sample tests on rates of infection</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/two-sample-tests-on-rates-of-infection/m-p/282695#M14897</link>
      <description>&lt;P&gt;This may fit into the class of data considered 'rare events'.&amp;nbsp; SAS/QC recently added PROC RAREEVENTS to produce Shewhart control charts using the hypergeometric distribution.&amp;nbsp; Though not a statistical comparison per se, the graph may be able to illustrate the difference much better than a p-value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The most recent SUGI proceedings had a nice article on it.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings16/SAS4040-2016.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings16/SAS4040-2016.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2016 14:34:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/two-sample-tests-on-rates-of-infection/m-p/282695#M14897</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2016-07-07T14:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: two sample tests on rates of infection</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/two-sample-tests-on-rates-of-infection/m-p/810205#M39866</link>
      <description>Do you think it's necessary to put the numerator of the rates in the model as the weight? For example, 40% in one group might result from 4/10, but 30% in other group might result from 30/100?</description>
      <pubDate>Wed, 27 Apr 2022 15:57:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/two-sample-tests-on-rates-of-infection/m-p/810205#M39866</guid>
      <dc:creator>SAS-questioner</dc:creator>
      <dc:date>2022-04-27T15:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: two sample tests on rates of infection</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/two-sample-tests-on-rates-of-infection/m-p/810225#M39872</link>
      <description>&lt;P&gt;Yes. The denominator is used when you model rates. But you should not use a WEIGHT variable. Instead, use an OFFSET variable. The KB article that I linked to contains details and an example.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 16:59:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/two-sample-tests-on-rates-of-infection/m-p/810225#M39872</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-04-27T16:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: two sample tests on rates of infection</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/two-sample-tests-on-rates-of-infection/m-p/810248#M39885</link>
      <description>Thank you so much! Do you know what's this test called? Is it a binomial test? Or just the logistic regression?</description>
      <pubDate>Wed, 27 Apr 2022 17:50:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/two-sample-tests-on-rates-of-infection/m-p/810248#M39885</guid>
      <dc:creator>SAS-questioner</dc:creator>
      <dc:date>2022-04-27T17:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: two sample tests on rates of infection</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/two-sample-tests-on-rates-of-infection/m-p/889218#M44062</link>
      <description>&lt;P&gt;Hi Rick, I am wondering if there is a two-level involved, does proc genmod can model the random effect?&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example,&amp;nbsp;&lt;SPAN&gt;there are 50 stores in county X, 30 out of the 50 stores have product A, and 20 out of the 50 stores have product B. And then I find out how many people (with certain feature) within county X need product A (N), and how many people (with certain feature) within county X need product B(n). And I want to compare the rate like: 30/N vs 30/n. And there are multiple counties, not just an X. Is it appropriate for PROC GENMOD? And is it multilevel modeling? Thank you!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2023 18:13:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/two-sample-tests-on-rates-of-infection/m-p/889218#M44062</guid>
      <dc:creator>SAS-questioner</dc:creator>
      <dc:date>2023-08-14T18:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: two sample tests on rates of infection</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/two-sample-tests-on-rates-of-infection/m-p/889219#M44063</link>
      <description>&lt;P&gt;Please create a new thread with your question, rather than using this thread from 2016.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2023 18:17:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/two-sample-tests-on-rates-of-infection/m-p/889219#M44063</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2023-08-14T18:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: two sample tests on rates of infection</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/two-sample-tests-on-rates-of-infection/m-p/889220#M44064</link>
      <description>OK, I will create an new one, thank you!</description>
      <pubDate>Mon, 14 Aug 2023 18:18:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/two-sample-tests-on-rates-of-infection/m-p/889220#M44064</guid>
      <dc:creator>SAS-questioner</dc:creator>
      <dc:date>2023-08-14T18:18:31Z</dc:date>
    </item>
  </channel>
</rss>

