<?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 do I solve Negative Binomial convergence problem? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-solve-Negative-Binomial-convergence-problem/m-p/901691#M44698</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A bit the same message here as the one &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;has already put forward.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are NOT making one (1!) model. You are fitting as many models as there are unique (distinct) combinations of&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;"PRODUCT&amp;nbsp;S9 STRAIN REP" - levels.&lt;BR /&gt;The models all have the same "model form", but it's not one (overall) model.&lt;BR /&gt;Are you aware of that?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Submit the below and I suspect it may become clear why some of your models have convergence problems.&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=test_data1 ;
 tables PRODUCT * S9 * STRAIN * REP / list ;
run ;

proc means data=test_data1 ;
 class PRODUCT S9 STRAIN REP ;
 var   NCOUNT DOSE1 HIGH ;
run ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;BR, Koen&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Nov 2023 10:02:48 GMT</pubDate>
    <dc:creator>sbxkoenk</dc:creator>
    <dc:date>2023-11-06T10:02:48Z</dc:date>
    <item>
      <title>How do I solve Negative Binomial convergence problem?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-solve-Negative-Binomial-convergence-problem/m-p/390909#M20371</link>
      <description>&lt;P&gt;I am trying to use a Negative Binomial regression model with link=log in SAS 9 for some count data in which the dependent count variable takes on the values that range between 4 and 300 depending on the experiment. I get the following warning in the Log:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"WARNING: The relative Hessian convergence criterion of #####&amp;nbsp;is greater than the limit of 0.0001. The convergence is questionable.&lt;BR /&gt;WARNING: The procedure is continuing but the validity of the model fit is questionable."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The model has two independent variables: DOSE and HIGH where HIGH is an idicator variable (0 or 1).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc genmod data=test_data1 ;&lt;BR /&gt;ods output parameterestimates=params ModelANOVA=pvalues ;&lt;BR /&gt;model NCOUNT = DOSE1 HIGH / dist=negbin link=log type3 ;&lt;BR /&gt;by PRODUCT&amp;nbsp;S9 STRAIN REP;&lt;BR /&gt;run ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Arial','sans-serif'; color: #242729;"&gt;The estimate for dispersion parameter is always 0 or near 0. When the estimate is 0, its followed by a standard error and missing values for the 95% Wald CIs. The estimates and standard errors for the independent variables equal those when using&amp;nbsp;a Poisson regression model rather than a negative binomial regression &amp;nbsp;model.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Arial','sans-serif'; color: #242729;"&gt;Is there a solution for the convergence issue?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2017 13:53:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-solve-Negative-Binomial-convergence-problem/m-p/390909#M20371</guid>
      <dc:creator>riversdl06</dc:creator>
      <dc:date>2017-08-25T13:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: How do I solve Negative Binomial convergence problem?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-solve-Negative-Binomial-convergence-problem/m-p/390925#M20376</link>
      <description>&lt;PRE&gt;
Make the number of iteration bigger ?

proc genmod data=sashelp.class;
model age=weight height/maxiter=200 dist=negbin link=log type3 ;
run;

&lt;/PRE&gt;</description>
      <pubDate>Fri, 25 Aug 2017 14:49:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-solve-Negative-Binomial-convergence-problem/m-p/390925#M20376</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-08-25T14:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: How do I solve Negative Binomial convergence problem?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-solve-Negative-Binomial-convergence-problem/m-p/390927#M20378</link>
      <description>Thank you. I tried the suggestion but I still get the warnings.&lt;BR /&gt;</description>
      <pubDate>Fri, 25 Aug 2017 14:57:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-solve-Negative-Binomial-convergence-problem/m-p/390927#M20378</guid>
      <dc:creator>riversdl06</dc:creator>
      <dc:date>2017-08-25T14:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: How do I solve Negative Binomial convergence problem?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-solve-Negative-Binomial-convergence-problem/m-p/391228#M20409</link>
      <description>&lt;P&gt;Lack of convergence often indicates that a model does not fit the data. In your case, you are fitting this model for each distinct combination of&amp;nbsp;&lt;SPAN&gt;PRODUCT&amp;nbsp;S9 STRAIN REP. &amp;nbsp; Did you get an additional NOTE in the log that says something like "The proceeding WARNING was for the following BY group:&amp;nbsp;PRODUCT=1 S9=2 STRAIN=3 REP=4;"? &amp;nbsp;If so, it might be that there is one BY group that does not fit the model, perhaps because of missing values, small sample size, constant values, outliers, etc. &amp;nbsp;If the number of BY groups that do not converge is small, you might&amp;nbsp;choose to handle those groups separately or exclude them from this analysis. If the WARNING is printed for most/all BY groups, you should rethink your model.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2017 13:47:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-solve-Negative-Binomial-convergence-problem/m-p/391228#M20409</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-08-28T13:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do I solve Negative Binomial convergence problem?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-solve-Negative-Binomial-convergence-problem/m-p/901681#M44696</link>
      <description>&lt;P&gt;What is the best way to identify which distribution or link to use or are there rule of thumbs in place to make help make these choices.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 08:27:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-solve-Negative-Binomial-convergence-problem/m-p/901681#M44696</guid>
      <dc:creator>BMI_kid</dc:creator>
      <dc:date>2023-11-06T08:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: How do I solve Negative Binomial convergence problem?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-solve-Negative-Binomial-convergence-problem/m-p/901691#M44698</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A bit the same message here as the one &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;has already put forward.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are NOT making one (1!) model. You are fitting as many models as there are unique (distinct) combinations of&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;"PRODUCT&amp;nbsp;S9 STRAIN REP" - levels.&lt;BR /&gt;The models all have the same "model form", but it's not one (overall) model.&lt;BR /&gt;Are you aware of that?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Submit the below and I suspect it may become clear why some of your models have convergence problems.&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=test_data1 ;
 tables PRODUCT * S9 * STRAIN * REP / list ;
run ;

proc means data=test_data1 ;
 class PRODUCT S9 STRAIN REP ;
 var   NCOUNT DOSE1 HIGH ;
run ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;BR, Koen&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 10:02:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-solve-Negative-Binomial-convergence-problem/m-p/901691#M44698</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-11-06T10:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do I solve Negative Binomial convergence problem?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-solve-Negative-Binomial-convergence-problem/m-p/901692#M44699</link>
      <description>&lt;P&gt;If you want to initiate a new discussion, you should create a new thread.&lt;/P&gt;
&lt;P&gt;The quick answer is that it depends on the response data (Y) that you are trying to model. I assume you know about normal and lognormal links. If you are modeling count data, then Poisson and Negative Binomial are appropriate. The gamma distribution is used to model positive continuous data. The Tweedie distribution is used in the insurance industry to model data (like insurance payouts) that are positive but have a point-mass density at 0.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 10:04:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-solve-Negative-Binomial-convergence-problem/m-p/901692#M44699</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2023-11-06T10:04:11Z</dc:date>
    </item>
  </channel>
</rss>

