<?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: NEGBIN Regression in COUNTREG and GENMOD in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/NEGBIN-Regression-in-COUNTREG-and-GENMOD/m-p/106446#M5586</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is likely that the two procedures are reporting different parameterizations of the distribution. In terms of SAS definition of the distribution found here :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lefunctionsref/63354/HTML/default/viewer.htm#n164yyfgppedmkn1320boncqkh6r.htm"&gt;http://support.sas.com/documentation/cdl/en/lefunctionsref/63354/HTML/default/viewer.htm#n164yyfgppedmkn1320boncqkh6r.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the expected count is mu=n*p/(1-p) and the variance of the counts is sigma2 = n*p/(1-p)**2 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you fit a NEGBIN(P=2) in COUNTREG, the relationship between the counts and their variances is modelled as Sigma2 = mu + Alpha*mu**2. Thus, for an estimated count (mu = exp(X'*Beta)) and value of Alpha, the parameters of the distribution are: n = 1/Alpha, p = 1/(1+Alpha*mu).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, when you fit a NEGBIN(P=1), the relationship between the counts and their variances is modelled as Sigma2 = mu + Alpha'*mu (that's Alpha prime). Thus, for an estimated count (mu) and value of Alpha', the parameters of the distribution are: n = mu/Alpha', p = 1/(1+Alpha'). (Note: the simple fact that there are two ways to fit a negative binomial in COUNTREG already warns us that we should be more cautious when fitting that distribution.) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't checked the parameterization fitted by proc GENMOD. It uses the same default link (log) as COUNTREG, but I wouldn't expect its parameter k to be the same as COUNTREG's Alpha described above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps more than it confuses...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 May 2012 21:21:01 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2012-05-07T21:21:01Z</dc:date>
    <item>
      <title>NEGBIN Regression in COUNTREG and GENMOD</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/NEGBIN-Regression-in-COUNTREG-and-GENMOD/m-p/106445#M5585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am wondering if guidance/suggestions can be offered about the comparability of results for negative binomial regression from GENMOD and COUNTREG in SAS 9.3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using a Statistics Canada public use microdata file with non-integer weights. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that GENMOD uses GLM-style coding for classification variables but is this also true for COUNTREG? (It appears to be so but I have seen no documentation to that effect though an example strongly hints that this is so.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resulting parameter estimates look different (signs are same but magnitudes different in the 1&lt;SUP&gt;st&lt;/SUP&gt; or 2&lt;SUP&gt;nd&lt;/SUP&gt; decimal place). I am using defaults in both procedures (Newton-Raphson in COUNTREG and I assume a maximum likelihood in GENMOD); both procedures converge. Though I am quite content to accommodate such differences, is there a general preference of one procedure over the other based on the default algorithms and types of data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More interestingly, COUNTEG has a ‘probcount’ keyword in its output statement of the "&lt;SPAN style="color: #000000; font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;probability of the response variable taking particular values&lt;/SPAN&gt;."&amp;nbsp; But no such facility appears in GENMOD. GENMOD can provide the &lt;SPAN style="color: #000000; font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;mean of "the predicted probability that the response variable is less than or equal to the value of &lt;/SPAN&gt;&lt;SPAN class="variable" style="font-style: italic; color: #000000; font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;_LEVEL_&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt; if the multinomial model for ordinal data is used (in other words, Pr&lt;/SPAN&gt;&lt;IMG alt="" class="math gen jiveImage" src="http://support.sas.com/documentation/cdl/en/statug/63347/HTML/default/images/statug_genmod0195.png" style="font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; color: #000000; background-color: #ffffff;" /&gt;&lt;SPAN style="color: #000000; font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;, where Y is the response variable)," which is manifestly not the same as the output from COUNTREG. &lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #000000; font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif;"&gt;If I wanted to get the equivalent of PROBCOUNT from GENMOD is there a macro that would enable me to do so?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: arial, 'Arial Unicode MS', geneva, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2012 18:22:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/NEGBIN-Regression-in-COUNTREG-and-GENMOD/m-p/106445#M5585</guid>
      <dc:creator>ml</dc:creator>
      <dc:date>2012-05-07T18:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: NEGBIN Regression in COUNTREG and GENMOD</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/NEGBIN-Regression-in-COUNTREG-and-GENMOD/m-p/106446#M5586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is likely that the two procedures are reporting different parameterizations of the distribution. In terms of SAS definition of the distribution found here :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lefunctionsref/63354/HTML/default/viewer.htm#n164yyfgppedmkn1320boncqkh6r.htm"&gt;http://support.sas.com/documentation/cdl/en/lefunctionsref/63354/HTML/default/viewer.htm#n164yyfgppedmkn1320boncqkh6r.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the expected count is mu=n*p/(1-p) and the variance of the counts is sigma2 = n*p/(1-p)**2 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you fit a NEGBIN(P=2) in COUNTREG, the relationship between the counts and their variances is modelled as Sigma2 = mu + Alpha*mu**2. Thus, for an estimated count (mu = exp(X'*Beta)) and value of Alpha, the parameters of the distribution are: n = 1/Alpha, p = 1/(1+Alpha*mu).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, when you fit a NEGBIN(P=1), the relationship between the counts and their variances is modelled as Sigma2 = mu + Alpha'*mu (that's Alpha prime). Thus, for an estimated count (mu) and value of Alpha', the parameters of the distribution are: n = mu/Alpha', p = 1/(1+Alpha'). (Note: the simple fact that there are two ways to fit a negative binomial in COUNTREG already warns us that we should be more cautious when fitting that distribution.) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't checked the parameterization fitted by proc GENMOD. It uses the same default link (log) as COUNTREG, but I wouldn't expect its parameter k to be the same as COUNTREG's Alpha described above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps more than it confuses...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2012 21:21:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/NEGBIN-Regression-in-COUNTREG-and-GENMOD/m-p/106446#M5586</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2012-05-07T21:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: NEGBIN Regression in COUNTREG and GENMOD</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/NEGBIN-Regression-in-COUNTREG-and-GENMOD/m-p/106447#M5587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks PG&amp;nbsp; - the recent SAS book on overdispersion, which had not arrived when I posted this question, also proved quite useful in this regard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 14:02:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/NEGBIN-Regression-in-COUNTREG-and-GENMOD/m-p/106447#M5587</guid>
      <dc:creator>ml</dc:creator>
      <dc:date>2012-05-17T14:02:37Z</dc:date>
    </item>
  </channel>
</rss>

