<?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: How to fit mixed Poisson/Negative binomial model with offset in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-fit-mixed-Poisson-Negative-binomial-model-with-offset/m-p/536293#M26997</link>
    <description>&lt;P&gt;Unfortunately, even the&amp;nbsp;&lt;SPAN&gt;method=quad(fastquad qpoints=3)&amp;nbsp;&lt;/SPAN&gt;option gives the same memory error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 17 Feb 2019 21:16:20 GMT</pubDate>
    <dc:creator>SBS</dc:creator>
    <dc:date>2019-02-17T21:16:20Z</dc:date>
    <item>
      <title>How to fit mixed Poisson/Negative binomial model with offset</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-fit-mixed-Poisson-Negative-binomial-model-with-offset/m-p/536242#M26992</link>
      <description>&lt;P&gt;I am very new to SAS and need some help fitting a poisson model first, and in case of overdispersion, fitting a negative binomial mixed model for the following context:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I want to isolate gender differences in the preferences for reports written by others using language that is high on several pre-determined categories (e.g., personal pronouns). I have raw counts of words in the report that fall into each of the various language categories as well as total number of words in the report.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I understand that I have to use mixed Poisson/Negative binomial regression models as in my data - (1) I have multiple reports bought by the same person; and (2) the same report may be bought by multiple people; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also need to control for the random effects of two categorical variables: country and industry.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I fit a mixed model for this situation with a count dependent variable (raw count of personal pronouns in the report), offset parameter (total number of words in the report), gender of the rater (m=0; f=1); and four nestings (raterID; reportID; countryCode; industryCode)? How do I know if Poisson or negative binomial mixed model fits better based on regression results?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand that I need to use nlmixed. But I don't understand how to use it for my situation.I would really appreciate your kind help.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Feb 2019 15:02:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-fit-mixed-Poisson-Negative-binomial-model-with-offset/m-p/536242#M26992</guid>
      <dc:creator>SBS</dc:creator>
      <dc:date>2019-02-17T15:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to fit mixed Poisson/Negative binomial model with offset</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-fit-mixed-Poisson-Negative-binomial-model-with-offset/m-p/536279#M26993</link>
      <description>&lt;P&gt;Unless you are looking at non-linear models, you should be looking at &lt;STRONG&gt;proc glimmix,&lt;/STRONG&gt; it does support Poisson and negative binomial distributed responses with offset.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Feb 2019 19:58:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-fit-mixed-Poisson-Negative-binomial-model-with-offset/m-p/536279#M26993</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2019-02-17T19:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to fit mixed Poisson/Negative binomial model with offset</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-fit-mixed-Poisson-Negative-binomial-model-with-offset/m-p/536290#M26994</link>
      <description>&lt;P&gt;I tried the following code with GLIMMIX&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc glimmix data=myData method=quad;&lt;BR /&gt;class GenderRater RaterID;&lt;BR /&gt;model RAW_COUNT_PRONOUNS =GenderRater / link=log s dist=negbinomial offset=log_TOTAL_WORDS;&lt;BR /&gt;random int / subject=RaterID;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Within a second it gives the following error: The SAS system stopped processing this step because of insufficient memory&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just have 50,000 observations and 1500 Raters. What am I getting wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Feb 2019 20:58:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-fit-mixed-Poisson-Negative-binomial-model-with-offset/m-p/536290#M26994</guid>
      <dc:creator>SBS</dc:creator>
      <dc:date>2019-02-17T20:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to fit mixed Poisson/Negative binomial model with offset</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-fit-mixed-Poisson-Negative-binomial-model-with-offset/m-p/536291#M26995</link>
      <description>&lt;P&gt;I also tried NLMIXED and it gives no results, despite no error -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc nlmixed data=myData;&lt;BR /&gt;xb = b0 + b1*&lt;SPAN&gt;GenderRater&lt;/SPAN&gt; + u;&lt;BR /&gt;mu = exp(xb +&lt;SPAN&gt;log_TOTAL_WORDS&lt;/SPAN&gt;);&lt;BR /&gt;m = 1/alpha;&lt;BR /&gt;ll = lgamma(&lt;SPAN&gt;RAW_COUNT_PRONOUNS&lt;/SPAN&gt;+m)-lgamma(&lt;SPAN&gt;RAW_COUNT_PRONOUNS&lt;/SPAN&gt;+1)-lgamma(m)&lt;BR /&gt;+&lt;SPAN&gt;RAW_COUNT_PRONOUNS&lt;/SPAN&gt;*log(alpha*mu)-(&lt;SPAN&gt;RAW_COUNT_PRONOUNS&lt;/SPAN&gt;+m)*log(1+alpha*mu);&lt;BR /&gt;model&amp;nbsp;&lt;SPAN&gt;RAW_COUNT_PRONOUNS&lt;/SPAN&gt; ~ general(ll);&lt;BR /&gt;random u ~ normal(0,s2u) subject=&lt;SPAN&gt;RaterID&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Feb 2019 21:09:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-fit-mixed-Poisson-Negative-binomial-model-with-offset/m-p/536291#M26995</guid>
      <dc:creator>SBS</dc:creator>
      <dc:date>2019-02-17T21:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to fit mixed Poisson/Negative binomial model with offset</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-fit-mixed-Poisson-Negative-binomial-model-with-offset/m-p/536292#M26996</link>
      <description>&lt;P&gt;Maybe an explanation here:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/60/666.html" target="_self"&gt;http://support.sas.com/kb/60/666.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Feb 2019 21:12:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-fit-mixed-Poisson-Negative-binomial-model-with-offset/m-p/536292#M26996</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2019-02-17T21:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to fit mixed Poisson/Negative binomial model with offset</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-fit-mixed-Poisson-Negative-binomial-model-with-offset/m-p/536293#M26997</link>
      <description>&lt;P&gt;Unfortunately, even the&amp;nbsp;&lt;SPAN&gt;method=quad(fastquad qpoints=3)&amp;nbsp;&lt;/SPAN&gt;option gives the same memory error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Feb 2019 21:16:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-fit-mixed-Poisson-Negative-binomial-model-with-offset/m-p/536293#M26997</guid>
      <dc:creator>SBS</dc:creator>
      <dc:date>2019-02-17T21:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to fit mixed Poisson/Negative binomial model with offset</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-fit-mixed-Poisson-Negative-binomial-model-with-offset/m-p/536309#M26998</link>
      <description>&lt;P&gt;I was able to get NLMIXED running. The error was due to gender variable. It worked after dummy coding it. However, GLIMMIX still gives the same memory error.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 01:08:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-fit-mixed-Poisson-Negative-binomial-model-with-offset/m-p/536309#M26998</guid>
      <dc:creator>SBS</dc:creator>
      <dc:date>2019-02-18T01:08:09Z</dc:date>
    </item>
  </channel>
</rss>

