BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
JamesLin
Fluorite | Level 6

 

Hello:

 

I am running a macro with a large number of Negative Binomial regressions in GENMOD. I know that in some cases the result is questionable (due to a negative overdispersion parameter) but still GENMOD outputs non-missing results from ESTIMATE in all cases,

including the models that produce warnings like:

 

WARNING: The relative Hessian convergence criterion of 0.01955056 is greater than the
limit of 0.0001. The convergence is questionable.
WARNING: The procedure is continuing but the validity of the model fit is
questionable.

 

Is there a way to tell GENMOD to output nothing or missing values when the model fit generates warnings?

1 ACCEPTED SOLUTION

Accepted Solutions
pau13rown
Lapis Lazuli | Level 10

this is a common problem when running data simulations and eg bootstrapping from a small sample, some of the samples don't converge. There is an ods 'convergencestatus': https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_genmod_sect...

 

i think this is how i normally do it, ie in the macro catch this variable and later discard estimates from samples that didn't converge. I've seen others do likewise

View solution in original post

2 REPLIES 2
pau13rown
Lapis Lazuli | Level 10

this is a common problem when running data simulations and eg bootstrapping from a small sample, some of the samples don't converge. There is an ods 'convergencestatus': https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_genmod_sect...

 

i think this is how i normally do it, ie in the macro catch this variable and later discard estimates from samples that didn't converge. I've seen others do likewise

JamesLin
Fluorite | Level 6

Thanks for replying. I inserted a check based on the Status variable obtained from ods output statement as illustrated here:

 

https://blogs.sas.com/content/iml/2015/08/26/convergence-sim.html

 

 

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 1585 views
  • 2 likes
  • 2 in conversation