<?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 calculate incidence rates with poisson regression in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-incidence-rates-with-poisson-regression/m-p/471222#M24542</link>
    <description>&lt;P&gt;I have TB case surveillance data within a county from 2006-2012. I want to run a poisson regression and calculate incidence rates to determine which years had the highest incident rates and to identify any years with large outbreaks. I just want to make sure I am doing this right in sas, I was told to use the estimate statement and have never used it before.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;   Proc genmod data = TB;
    class year(param=ref ref='2006');
    model CASES = YEAR/ dist=poisson OFFSET=LOGN ;
    estimate '2006' year 1 0 0 0 0 0 0 0 0 0 0 0/ exp;
    estimate '2007' year 0 1 0 0 0 0 0 0 0 0 0 0/ exp;
    estimate '2008' year 0 0 1 0 0 0 0 0 0 0 0 0/ exp;
    estimate '2009' year 0 0 0 1 0 0 0 0 0 0 0 0 / exp;
    estimate '2010' year 0 0 0 0 1 0 0 0 0 0 0 0 / exp;
    estimate '2011' year 0 0 0 0 0 1 0 0 0 0 0 0 / exp;
    estimate '2012' year 0 0 0 0 0 0 1 0 0 0 0 0/ exp;
    estimate '2013' year 0 0 0 0 0 0 0 1 0 0 0 0/ exp;
    estimate '2014' year 0 0 0 0 0 0 0 0 1 0 0 0 / exp;
    estimate '2015' year 0 0 0 0 0 0 0 0 0 1 0 0/ exp;
    estimate '2016' year 0 0 0 0 0 0 0 0 0 0 1 0 / exp;
    estimate '2017' year 0 0 0 0 0 0 0 0 0 0 0 1 / exp;
    run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;LOGN is a variable I created earlier that is equal to LOG(population). I have a variable for population data of each year.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if I am using the estimate statement correctly? The output doesn't seem to be matching the case count numbers--for instance 2012 had the highest case count numbers but it is not the highest incidence rate...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my output from the contrast statements&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Output from contrast statment" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21253iE52770DB984D38CE/image-size/large?v=v2&amp;amp;px=999" role="button" title="cont.PNG" alt="Output from contrast statment" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Output from contrast statment&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated! Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Jun 2018 20:16:55 GMT</pubDate>
    <dc:creator>ccp27</dc:creator>
    <dc:date>2018-06-18T20:16:55Z</dc:date>
    <item>
      <title>How to calculate incidence rates with poisson regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-incidence-rates-with-poisson-regression/m-p/471222#M24542</link>
      <description>&lt;P&gt;I have TB case surveillance data within a county from 2006-2012. I want to run a poisson regression and calculate incidence rates to determine which years had the highest incident rates and to identify any years with large outbreaks. I just want to make sure I am doing this right in sas, I was told to use the estimate statement and have never used it before.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;   Proc genmod data = TB;
    class year(param=ref ref='2006');
    model CASES = YEAR/ dist=poisson OFFSET=LOGN ;
    estimate '2006' year 1 0 0 0 0 0 0 0 0 0 0 0/ exp;
    estimate '2007' year 0 1 0 0 0 0 0 0 0 0 0 0/ exp;
    estimate '2008' year 0 0 1 0 0 0 0 0 0 0 0 0/ exp;
    estimate '2009' year 0 0 0 1 0 0 0 0 0 0 0 0 / exp;
    estimate '2010' year 0 0 0 0 1 0 0 0 0 0 0 0 / exp;
    estimate '2011' year 0 0 0 0 0 1 0 0 0 0 0 0 / exp;
    estimate '2012' year 0 0 0 0 0 0 1 0 0 0 0 0/ exp;
    estimate '2013' year 0 0 0 0 0 0 0 1 0 0 0 0/ exp;
    estimate '2014' year 0 0 0 0 0 0 0 0 1 0 0 0 / exp;
    estimate '2015' year 0 0 0 0 0 0 0 0 0 1 0 0/ exp;
    estimate '2016' year 0 0 0 0 0 0 0 0 0 0 1 0 / exp;
    estimate '2017' year 0 0 0 0 0 0 0 0 0 0 0 1 / exp;
    run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;LOGN is a variable I created earlier that is equal to LOG(population). I have a variable for population data of each year.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if I am using the estimate statement correctly? The output doesn't seem to be matching the case count numbers--for instance 2012 had the highest case count numbers but it is not the highest incidence rate...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my output from the contrast statements&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Output from contrast statment" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21253iE52770DB984D38CE/image-size/large?v=v2&amp;amp;px=999" role="button" title="cont.PNG" alt="Output from contrast statment" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Output from contrast statment&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated! Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jun 2018 20:16:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-incidence-rates-with-poisson-regression/m-p/471222#M24542</guid>
      <dc:creator>ccp27</dc:creator>
      <dc:date>2018-06-18T20:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate incidence rates with poisson regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-incidence-rates-with-poisson-regression/m-p/471471#M24554</link>
      <description>&lt;P&gt;A slightly different approach would be to use the n/d format in GENMOD.&amp;nbsp; You could enter the "rate", numerator/denominator for each year, so that the model statement would be: model n/d=year/d=p etc.&amp;nbsp; The output will give you the calculated poisson rates along with standard errors for each year. Then you could compare the yearly rates using LSMEANS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jun 2018 18:14:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-incidence-rates-with-poisson-regression/m-p/471471#M24554</guid>
      <dc:creator>jgaughan</dc:creator>
      <dc:date>2018-06-19T18:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate incidence rates with poisson regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-incidence-rates-with-poisson-regression/m-p/471665#M24569</link>
      <description>&lt;P&gt;See &lt;A href="http://support.sas.com/kb/24188" target="_self"&gt;this note&lt;/A&gt;. Your ESTIMATE statements probably need to include the Intercept as shown there. Also as shown there, the easier way is to use a single LSMEANS statement instead. It is always best to avoid the ESTIMATE statement if you can instead use the LSMEANS, SLICE, or LSMESTIMATE statements which don't require you to properly define the contrasts to estimate or test.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2018 12:41:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-calculate-incidence-rates-with-poisson-regression/m-p/471665#M24569</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2018-06-20T12:41:59Z</dc:date>
    </item>
  </channel>
</rss>

