<?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 estimate county-level mortality using a Poisson regression model in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-estimate-county-level-mortality-using-a-Poisson/m-p/497448#M25720</link>
    <description>&lt;P&gt;I am trying to run what should be a&amp;nbsp; straightforward Poisson regression to obtain adjusted mortality rates at county-level. I must first clarify that my issue is not about choosing between a marginal (GEE) vs. subject-specific model. My data consists of the following variables: y=death counts, Ni=population at risk, sex=(M/F), Agegrp=3 age groups, and other covariates: x1=% of educated (at county level), x2=% of employed (at county level). My aim is to obtain Mortality rates/100,000 at county level based on the model consisting of the explanatory variables as shown below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am aiming to fit&amp;nbsp;the following Poisson regression model (with an offset log(Ni) :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;log(lambda_i)= bo + b1*Agegrp + b2*Sex + b3*X1 + b4*X2 + ui&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where ui=county random effects.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried following the example from SAS help using&amp;nbsp;&amp;nbsp;random effects model fitted using PROC GLIMMIX (v9.4).&amp;nbsp;This approach seems to do the trick, but the problem is the rates I am getting are not at county-level but rather at the level of the explanatory variables. Is there a way I could obtain these at county level? At the end I want to rank these counties by the adjusted mortality rates from the Poisson regression. Fitting a marginal mode (GEE) did not help either. I would welcome any suggestions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code is as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC GLIMMIX DATA=mydata;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CLASS county;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MODEL deaths = agegrp sex&amp;nbsp; X1 X2 / DIST=poisson OFFSET=log_Ni S DDFM=Satterth;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RANDOM county;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;My_Rate= 100000*exp(_zgamma_ + _xbeta_);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ID county deaths pop &lt;SPAN&gt;My_&lt;/SPAN&gt;&lt;SPAN&gt;Rate&lt;/SPAN&gt;;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; OUTPUT OUT=got_you;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Sep 2018 16:17:52 GMT</pubDate>
    <dc:creator>vundla</dc:creator>
    <dc:date>2018-09-20T16:17:52Z</dc:date>
    <item>
      <title>How to estimate county-level mortality using a Poisson regression model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-estimate-county-level-mortality-using-a-Poisson/m-p/497448#M25720</link>
      <description>&lt;P&gt;I am trying to run what should be a&amp;nbsp; straightforward Poisson regression to obtain adjusted mortality rates at county-level. I must first clarify that my issue is not about choosing between a marginal (GEE) vs. subject-specific model. My data consists of the following variables: y=death counts, Ni=population at risk, sex=(M/F), Agegrp=3 age groups, and other covariates: x1=% of educated (at county level), x2=% of employed (at county level). My aim is to obtain Mortality rates/100,000 at county level based on the model consisting of the explanatory variables as shown below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am aiming to fit&amp;nbsp;the following Poisson regression model (with an offset log(Ni) :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;log(lambda_i)= bo + b1*Agegrp + b2*Sex + b3*X1 + b4*X2 + ui&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where ui=county random effects.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried following the example from SAS help using&amp;nbsp;&amp;nbsp;random effects model fitted using PROC GLIMMIX (v9.4).&amp;nbsp;This approach seems to do the trick, but the problem is the rates I am getting are not at county-level but rather at the level of the explanatory variables. Is there a way I could obtain these at county level? At the end I want to rank these counties by the adjusted mortality rates from the Poisson regression. Fitting a marginal mode (GEE) did not help either. I would welcome any suggestions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code is as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC GLIMMIX DATA=mydata;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CLASS county;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MODEL deaths = agegrp sex&amp;nbsp; X1 X2 / DIST=poisson OFFSET=log_Ni S DDFM=Satterth;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RANDOM county;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;My_Rate= 100000*exp(_zgamma_ + _xbeta_);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; ID county deaths pop &lt;SPAN&gt;My_&lt;/SPAN&gt;&lt;SPAN&gt;Rate&lt;/SPAN&gt;;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; OUTPUT OUT=got_you;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 16:17:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-estimate-county-level-mortality-using-a-Poisson/m-p/497448#M25720</guid>
      <dc:creator>vundla</dc:creator>
      <dc:date>2018-09-20T16:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to estimate county-level mortality using a Poisson regression model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-estimate-county-level-mortality-using-a-Poisson/m-p/498088#M25739</link>
      <description>What you're looking for are the random intercepts from your model.  You need to add / solution option to your RANDOM statement and OUTPUT SolutionR to a dataset.  Depending on your needs, that may be enough or you may need to add the model intercept to random intercepts, transform to an original metric using iLink and calculate more specific ESTIMATES at set values of co-variates.&lt;BR /&gt;</description>
      <pubDate>Sat, 22 Sep 2018 16:19:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-estimate-county-level-mortality-using-a-Poisson/m-p/498088#M25739</guid>
      <dc:creator>Haris</dc:creator>
      <dc:date>2018-09-22T16:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to estimate county-level mortality using a Poisson regression model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-estimate-county-level-mortality-using-a-Poisson/m-p/499458#M25774</link>
      <description>&lt;P&gt;Thank you Haris, I much appreciate your suggestion.&amp;nbsp;I was not sure I was doing the correct thing, but as you suggested, indeed what I need are the random intercepts.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2018 12:22:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-estimate-county-level-mortality-using-a-Poisson/m-p/499458#M25774</guid>
      <dc:creator>vundla</dc:creator>
      <dc:date>2018-09-27T12:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to estimate county-level mortality using a Poisson regression model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-estimate-county-level-mortality-using-a-Poisson/m-p/505060#M25969</link>
      <description>Thanks Harris, what I needed exactly is to compare how the covariate adjusted mortality rates estimated from a Poisson model compare to the age-standardized mortality rates. Is there an easy way to average these estimates over the combination of covariates to obtain a single estimate for each county in PROC GLIMMMIX?</description>
      <pubDate>Wed, 17 Oct 2018 13:13:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-estimate-county-level-mortality-using-a-Poisson/m-p/505060#M25969</guid>
      <dc:creator>vundla</dc:creator>
      <dc:date>2018-10-17T13:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to estimate county-level mortality using a Poisson regression model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-estimate-county-level-mortality-using-a-Poisson/m-p/505122#M25975</link>
      <description>If I understand you correctly, random intercepts already give you what you seek—covariate standardized deviations of each random effect from sample average. If you need an estimate at a different standard than GLIMMIX default, you can use the ESTIMATE statement to obtain whatever estimate you need. &lt;BR /&gt;</description>
      <pubDate>Wed, 17 Oct 2018 14:46:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-estimate-county-level-mortality-using-a-Poisson/m-p/505122#M25975</guid>
      <dc:creator>Haris</dc:creator>
      <dc:date>2018-10-17T14:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to estimate county-level mortality using a Poisson regression model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-estimate-county-level-mortality-using-a-Poisson/m-p/505474#M25995</link>
      <description>&lt;P&gt;Thanks once more for the clarification it is very helpful. I was struggling/confused a bit about the correct interpretation of the random effects. You understood me correctly, it's much clearer&amp;nbsp;now. For example in my case with 2-levels of hierarchy in my data, it would be enough&amp;nbsp;as I am seeking differences from the national (aka sample) average in this case. It then makes sense again if I had an additional level,&amp;nbsp;say e.g. Districts, then the random effects at this level will represent differences from county average.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Oct 2018 09:14:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-estimate-county-level-mortality-using-a-Poisson/m-p/505474#M25995</guid>
      <dc:creator>vundla</dc:creator>
      <dc:date>2018-10-18T09:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to estimate county-level mortality using a Poisson regression model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-estimate-county-level-mortality-using-a-Poisson/m-p/505571#M26002</link>
      <description>You have to be careful with the interpretation of the multi-level random effects.  Just like the fixed effects, they are additive: i.e., your facility-level effect will not contain the county-level.  In other words, if you're looking for a facility-level effect, you will need to add the county in which it is.&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Oct 2018 14:20:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-estimate-county-level-mortality-using-a-Poisson/m-p/505571#M26002</guid>
      <dc:creator>Haris</dc:creator>
      <dc:date>2018-10-18T14:20:13Z</dc:date>
    </item>
  </channel>
</rss>

