Programming the statistical procedures from SAS

How do I tell GENMOD to generate missing values in ESTIMATE statement when warnings are present?

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 9
Accepted Solution

How do I tell GENMOD to generate missing values in ESTIMATE statement when warnings are present?

 

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?


Accepted Solutions
Solution
3 weeks ago
Regular Contributor
Posts: 153

Re: How do I tell GENMOD to generate missing values in ESTIMATE statement when warnings are present?

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

--------------
blog: papersandprograms.com

View solution in original post


All Replies
Solution
3 weeks ago
Regular Contributor
Posts: 153

Re: How do I tell GENMOD to generate missing values in ESTIMATE statement when warnings are present?

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

--------------
blog: papersandprograms.com
Occasional Contributor
Posts: 9

Re: How do I tell GENMOD to generate missing values in ESTIMATE statement when warnings are present?

Posted in reply to PaulBrownPhD

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

 

 

☑ This topic is solved.

Need further help from the community? Please ask a new question.

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