<?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 Which tests and procedure should I use for this rate comparison? Does random effect involved? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Which-tests-and-procedure-should-I-use-for-this-rate-comparison/m-p/889228#M44065</link>
    <description>&lt;P&gt;I want to compare two rates, but it's little bit complicated. 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). I want to compare the rate like: 30/N vs 20/n. Basically, the rates of product A compare to rate of product B, and rate of product A is defined as number of stores that have product A / number of people that need product A, the same goes with rate of product B. For the counties, there are multiple counties, not just an X. Basically, I select some counties first, and select some stores under each county. When I read previous threads, some said if I want to compare rate, I should use PROC GENMOD, because it is either Poisson or negative binomial, and PROC GENMOD is the procedure to do it. In my case, is it appropriate for PROC GENMOD (Poission or negative binomial)? If so, does it model random effect? And do I need to model random effect in my case? Thank you!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Aug 2023 18:29:56 GMT</pubDate>
    <dc:creator>SAS-questioner</dc:creator>
    <dc:date>2023-08-14T18:29:56Z</dc:date>
    <item>
      <title>Which tests and procedure should I use for this rate comparison? Does random effect involved?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Which-tests-and-procedure-should-I-use-for-this-rate-comparison/m-p/889228#M44065</link>
      <description>&lt;P&gt;I want to compare two rates, but it's little bit complicated. 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). I want to compare the rate like: 30/N vs 20/n. Basically, the rates of product A compare to rate of product B, and rate of product A is defined as number of stores that have product A / number of people that need product A, the same goes with rate of product B. For the counties, there are multiple counties, not just an X. Basically, I select some counties first, and select some stores under each county. When I read previous threads, some said if I want to compare rate, I should use PROC GENMOD, because it is either Poisson or negative binomial, and PROC GENMOD is the procedure to do it. In my case, is it appropriate for PROC GENMOD (Poission or negative binomial)? If so, does it model random effect? And do I need to model random effect in my case? Thank you!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2023 18:29:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Which-tests-and-procedure-should-I-use-for-this-rate-comparison/m-p/889228#M44065</guid>
      <dc:creator>SAS-questioner</dc:creator>
      <dc:date>2023-08-14T18:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: Which tests and procedure should I use for this rate comparison? Does random effect involved?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Which-tests-and-procedure-should-I-use-for-this-rate-comparison/m-p/889251#M44073</link>
      <description>&lt;P&gt;Example data to go along with the word salad might help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do you "I find out how many people (with certain feature)"? Include that in the data.&lt;/P&gt;
&lt;P&gt;How do you go about " I select some counties first, and select some stores under each county. "? Subsetting data? Random sample? Grouping?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2023 20:11:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Which-tests-and-procedure-should-I-use-for-this-rate-comparison/m-p/889251#M44073</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-08-14T20:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: Which tests and procedure should I use for this rate comparison? Does random effect involved?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Which-tests-and-procedure-should-I-use-for-this-rate-comparison/m-p/889389#M44078</link>
      <description>&lt;P&gt;Hi, Ballardw, thank you for replying. I will put the expected data below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;County      #_store   product_A   product_B   #_need_A   #_need_B
     1        50          20          30         100        120
     2        40          10          20          80         90
     3        55          25         35          150        160&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;"#_store" is the total number of store that I selected in that county. The "product_A" is the number of stores that have product A, the "product_B" is the number of stores that have product B, "#_need_A" is the number of people that need product A in that county, "#_need_B" is the number of people that need product B in that county. And I want to compare product_A/#_need_A vs. product_B/#_need_B.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For "find out how many people (with certain feature)" is defined as "#_need_A" and "#_need_B", but currently, I am not sure if the "#_need_A" and "#_need_B" is a absolute numbers or incidence rate, if it's incidence rate, for example, 100 out of 10000 people, do I still use 100? Or 100/10000 in this case?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For "&lt;SPAN&gt;I select some counties first, and select some stores under each county. &lt;/SPAN&gt;", it's "county" variable in that data, since each county has different population or number of stores, I am wondering if I need to make it as a random effect? Or it's just regular rate comparison?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Aug 2023 16:42:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Which-tests-and-procedure-should-I-use-for-this-rate-comparison/m-p/889389#M44078</guid>
      <dc:creator>SAS-questioner</dc:creator>
      <dc:date>2023-08-15T16:42:35Z</dc:date>
    </item>
  </channel>
</rss>

