BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
lichee
Quartz | Level 8

Hi SAS Gurus,

 

I am trying to run HGLM with PROC GLIMMIX using the data of around six million of individuals across states with state effect. Even though I started with the simplest model with only one covariate included only, the model did not converge. Any of you have any insight or suggestion?

lichee_1-1693343420236.png

Below is the log:

lichee_0-1693343390205.png

Any states are excluded when they had extremely low counts of individuals with the outcome variable flag_success_discharge=1.

 

Thank you,

Lichee

 

1 ACCEPTED SOLUTION

Accepted Solutions
SteveDenham
Jade | Level 19

Try increasing the number of iterations in an NLOPTIONS statement. Binary data often require more than the default 20 iterations.

 

SteveDenham

View solution in original post

10 REPLIES 10
PaigeMiller
Diamond | Level 26

Plenty of discussion about GLIMMIX not converging here in the forums. One example: https://communities.sas.com/t5/Statistical-Procedures/Glimmix-did-not-converge/td-p/387883 You should search for other discussions.

--
Paige Miller
jiltao
SAS Super FREQ

What happens if you add METHOD=LAPLACE option in the PROC GLIMMIX statement?

Also, you might want to spell out: dist=binary in the MODEL statement.

Thanks,

Jill

lichee
Quartz | Level 8

Thank you! 

 

I added METHOD=LAPLACE, and now the initial estimates did not yield a valid objective function.

Ksharp
Super User
If I was right, your response variable "flag_success_discharge" is continuous variable,
NOT a category variable. Use PROC FREQ to check its levels firstly.
lichee
Quartz | Level 8

Thank you! The dependent variable is dichotomous. Below is the crosstab:

 

lichee_0-1693397030352.png

 

Ksharp
Super User
Try specify the distribution :
/d=b
====>
/dist=binary
lichee
Quartz | Level 8
Yes, I re-ran the code with dist=binary specified and got the same message "Did not converge"
jiltao
SAS Super FREQ

Try using PARMS statement to enter you own starting values. This might take several trial and error.

If that does not help, can you send in your data?

Thanks,

Jill

SteveDenham
Jade | Level 19

Try increasing the number of iterations in an NLOPTIONS statement. Binary data often require more than the default 20 iterations.

 

SteveDenham

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 10 replies
  • 1685 views
  • 9 likes
  • 5 in conversation