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.

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
  • 4203 views
  • 0 likes
  • 3 in conversation