<?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 Predicted counts for negative binomial model in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Predicted-counts-for-negative-binomial-model/m-p/651495#M31272</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am doing a negative binomial model and have a question predicted counts.&lt;/P&gt;&lt;P&gt;Outcome = #events/person-years&lt;/P&gt;&lt;P&gt;primary predictor - year (calender years from 2009 to 2018)&lt;/P&gt;&lt;P&gt;model statement:&amp;nbsp;&lt;/P&gt;&lt;P&gt;model outcome = year age gender race/ offset=log_personyears dist=nb link=log;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to calculate expected counts per 1000 person years. How can I change the offset to predict 1000 person years rather than 1 person year?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Thu, 28 May 2020 17:59:22 GMT</pubDate>
    <dc:creator>skavyasindhu</dc:creator>
    <dc:date>2020-05-28T17:59:22Z</dc:date>
    <item>
      <title>Predicted counts for negative binomial model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Predicted-counts-for-negative-binomial-model/m-p/651495#M31272</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am doing a negative binomial model and have a question predicted counts.&lt;/P&gt;&lt;P&gt;Outcome = #events/person-years&lt;/P&gt;&lt;P&gt;primary predictor - year (calender years from 2009 to 2018)&lt;/P&gt;&lt;P&gt;model statement:&amp;nbsp;&lt;/P&gt;&lt;P&gt;model outcome = year age gender race/ offset=log_personyears dist=nb link=log;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to calculate expected counts per 1000 person years. How can I change the offset to predict 1000 person years rather than 1 person year?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2020 17:59:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Predicted-counts-for-negative-binomial-model/m-p/651495#M31272</guid>
      <dc:creator>skavyasindhu</dc:creator>
      <dc:date>2020-05-28T17:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: Predicted counts for negative binomial model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Predicted-counts-for-negative-binomial-model/m-p/651502#M31273</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When you calculate log_personyears in your DATA step, I assume you do something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;log_personyears = log (personyears);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So if you wish the offset to be per 1000 personyears, change that calculation to&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;log_thoupersonyears = log(1000*personyers);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let us know if that does what you need.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2020 18:12:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Predicted-counts-for-negative-binomial-model/m-p/651502#M31273</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-05-28T18:12:31Z</dc:date>
    </item>
  </channel>
</rss>

