<?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: PROC NLMIXED random effects model produces estimates that are too low. in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-NLMIXED-random-effects-model-produces-estimates-that-are/m-p/143132#M7515</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ron,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would definitely consider ZIP or ZINB with that many zeroes.&amp;nbsp; A good place to search for code to do this is in the SAS-L archives.&amp;nbsp; Look for posts by Dale McLerran.&amp;nbsp; There is an especially good one dated 14 April 2003.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 May 2014 12:45:10 GMT</pubDate>
    <dc:creator>SteveDenham</dc:creator>
    <dc:date>2014-05-09T12:45:10Z</dc:date>
    <item>
      <title>PROC NLMIXED random effects model produces estimates that are too low.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-NLMIXED-random-effects-model-produces-estimates-that-are/m-p/143131#M7514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using PROC NLMIXED to produce a poisson mixed model (I'm using this method instead of GLIMMIX or GENMOD because I need the correct confidence intervals for the Pre/Post difference in means).&amp;nbsp;&amp;nbsp; The first model is the fixed effects model, the second model is the mixed model:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIXED EFFECTS MODEL (matches results from GLIMMIX, GENMOD)&lt;/P&gt;&lt;P&gt;PROC NLMIXED data=prepost;&lt;/P&gt;&lt;P&gt;PARMS b0=-1.6 b1=0.1;&lt;/P&gt;&lt;P&gt;eta = b0 + b1*prepost2;&lt;/P&gt;&lt;P&gt;lambda=exp(eta);&lt;/P&gt;&lt;P&gt;model countRx=poisson(lambda);&lt;/P&gt;&lt;P&gt;estimate 'pre level ' exp(b0);&lt;/P&gt;&lt;P&gt;estimate 'post level' exp(b0 + b1);&lt;/P&gt;&lt;P&gt;estimate 'pre-post difference' exp(b0+b1)-exp(b0);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RANDOM EFFECTS MODEL (to adjust for correct pre post estimates)&lt;/P&gt;&lt;P&gt;PROC NLMIXED data=prepost;&lt;/P&gt;&lt;P&gt;PARMS b0=-1.6 b1=0.1 s2u=0;&lt;/P&gt;&lt;P&gt;eta = b0 + b1*prepost2 + u;&lt;/P&gt;&lt;P&gt;lambda=exp(eta);&lt;/P&gt;&lt;P&gt;model countRx=poisson(lambda);&lt;/P&gt;&lt;P&gt;random u~normal(0, s2u) subject=enrolid&lt;/P&gt;&lt;P&gt;estimate 'pre level ' exp(b0);&lt;/P&gt;&lt;P&gt;estimate 'post level' exp(b0 + b1);&lt;/P&gt;&lt;P&gt;estimate 'pre-post difference' exp(b0+b1)-exp(b0);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fixed effects model gives these estimates:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameter estimates&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bo&amp;nbsp; -1.5994&lt;/P&gt;&lt;P&gt;b1&amp;nbsp; 0.09337&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;estimates&lt;/P&gt;&lt;P&gt;period&amp;nbsp;&amp;nbsp; countRx&lt;/P&gt;&lt;P&gt;pre&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.2020&lt;/P&gt;&lt;P&gt;post&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.2218&lt;/P&gt;&lt;P&gt;pre-post&amp;nbsp; 0.01977&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the random effects model gives these estimates:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameter estimates&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bo&amp;nbsp;&amp;nbsp; -6.4813&lt;/P&gt;&lt;P&gt;b1&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.09337&lt;/P&gt;&lt;P&gt;s2u&amp;nbsp;&amp;nbsp; 26.2858&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;estimates&lt;/P&gt;&lt;P&gt;period&amp;nbsp;&amp;nbsp; countRx&lt;/P&gt;&lt;P&gt;pre&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.001532&lt;/P&gt;&lt;P&gt;post&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.001682&lt;/P&gt;&lt;P&gt;pre-post&amp;nbsp; 0.000150&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We would expect some changes because of the switch from independent measures to a repeated measures model, but nothing like this.&amp;nbsp;&amp;nbsp; What is the problem?&amp;nbsp;&amp;nbsp;&amp;nbsp; Is the model specification correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ron Levine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Ronald Levine:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since I've been advised the the above code is correct for the Poisson with random effects model, there is another issue at hand:&amp;nbsp; the large random effects variance (s2u=26) may be diminishing the mean estimation.&amp;nbsp;&amp;nbsp; (I tried the same model using PROC GLIMMIX and the estimation was not affected.&amp;nbsp;&amp;nbsp; Why? )&amp;nbsp;&amp;nbsp;&amp;nbsp; My question to the community is:&amp;nbsp;&amp;nbsp; Should we use a NegBin distribution instead of Poisson in PROC NLMIXED?&amp;nbsp;&amp;nbsp;&amp;nbsp; Or, (since 92% of the count outcomes are zeros), should we use a ZIP or ZINB distribution instead?&amp;nbsp;&amp;nbsp;&amp;nbsp; How would these alternative models be coded in PROC NLMIXED? Ron Levine&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2014 21:56:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-NLMIXED-random-effects-model-produces-estimates-that-are/m-p/143131#M7514</guid>
      <dc:creator>RonLev</dc:creator>
      <dc:date>2014-05-02T21:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: PROC NLMIXED random effects model produces estimates that are too low.</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-NLMIXED-random-effects-model-produces-estimates-that-are/m-p/143132#M7515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ron,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would definitely consider ZIP or ZINB with that many zeroes.&amp;nbsp; A good place to search for code to do this is in the SAS-L archives.&amp;nbsp; Look for posts by Dale McLerran.&amp;nbsp; There is an especially good one dated 14 April 2003.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2014 12:45:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-NLMIXED-random-effects-model-produces-estimates-that-are/m-p/143132#M7515</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2014-05-09T12:45:10Z</dc:date>
    </item>
  </channel>
</rss>

