BookmarkSubscribeRSS Feed
bknight
Calcite | Level 5

Hi,

 

I am attempting to run logistic regression using glimmix to account for clustering by individual school level. My code is:

 

proc glimmix data=wcc;
class school;
model lloc_4r = perception sex county schooltwo schooltwo*perception/link=logit dist=binomial;
random intercept / subject= school;
run;

 

When i run the code, the output tells me the model did not converge. This only happens when school is added. There are 21 different schools and I expect clustering effects for them. Does this mean something is wrong with my syntax or the dataset, and is there anything I can do about it? My assumption is that it might be related to how the schools are coded/formatted in the dataset which is by their school code (i.e. 0008, 0250, 0915, etc.). Any help would be appreciated.

 

Brad

2 REPLIES 2
Ksharp
Super User

Maybe you don't have a good initial / start  value for parameter estimator.

Try using proc logistic to get the parameter estimator and feed it into proc gliimmix.

Or @Rick_SAS  might have good idea.

Rick_SAS
SAS Super FREQ

Is there a note in the log that says why the convergence did not occur? If so, please post.

 

I wrote a blog post the discusses one reason for non-convergence (estimate of G matrix not positive definite), but the article links to two excellent papers that explain additional reasons why a mixed model might not converge...and what to do about it.

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 3810 views
  • 0 likes
  • 3 in conversation