BookmarkSubscribeRSS Feed
Obsidian | Level 7

 I got a warning when I ran the following code. I have tried to use aggregate option, but it is not working. appreciate it for any inputs/suggestion on the reason and solutions.

PROC GENMOD data=data descending;

Class trt classvars;

MODEL avalc = trt classvars contvars/dist=binomial link=Identity alpha=0.10;

Estimate 'xx'trt 1 -1/alpha=0.05;



WARNING: The relative Hessian convergence criterion of 0.0027102422 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.

Diamond | Level 26

Google "Hessian convergence is questionable"


Lots of discussion on this topic, including!topic/


Which says "The implication is that PROC GENMOD has reached a local maximum in this function rather than a global maximum."

Paige Miller
Obsidian | Level 7

Thank you! I have gone through the discussion, but it does seems to provide any solutions. They tried many solutions, but none of them can fixe the issue.


My goal is to get risk difference and CI between the treatment group from Estimate statement (link=identify). I tried link = logit, the warning disappeared, but need to convert OR to RD and get the confidence interval. Does anyone have a reference for calculating RD and CI from OR?


See this note which describes using the NLMeans macro to estimate the risk difference. The identity link does not assure that the predicted values from the model are valid probabilities, so errors like this are common when not using the canonical link (logit). 

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 3 replies
  • 3 in conversation