BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
psh23
Fluorite | Level 6

I would like to calculate an ICC from my genmod model. When I request 'corrw' the model runs for hours and then eventually SAS freezes. I have tried specifying all correlation structures and this doesn't change anything. The model runs quickly without 'corrw'. I can't figure out what the reason might be for this?

 

proc genmod data=all descending;

where site='temp';

class msex race marst urbrur registry;

model er = msex race marst urbrur / link=log dist=bin;

repeated subject=registry / corrw;

run;

 

Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
StatDave
SAS Super FREQ

Check your data to see how many observations there are in the largest cluster (level of REGISTRY). Or, if you get partial output, see if the GEE Model Information table is there which will show the Correlation Matrix Dimension. The appearance of SAS freezing is probably actually due to it having to take a lot of time computationally because of a large cluster size. The time needed to estimate and display all of the correlations in a large matrix could be considerable. If you can reduce the cluster size, then that will reduce the time needed. If you intend to use only the independence or exchangeable structure, then you don't need the CORRW option. The single correlation estimate for the exchangeable structure is printed by default without the CORRW option. You could also try fitting the same model using the newer PROC GEE instead of GENMOD. 

View solution in original post

3 REPLIES 3
StatDave
SAS Super FREQ

Since you haven't specified a correlation matrix structure, the independence structure is used and there are no correlation estimates to report. The correlation matrix is just the identity matrix. See the "Details: Generalized Estimating Equations:Working Correlation Matrix" section of the GENMOD documentation for details on the structures and the correlations that are estimated for each.

psh23
Fluorite | Level 6

It does not change if I specify a correlation structure - which is why it is not included in the code above.

StatDave
SAS Super FREQ

Check your data to see how many observations there are in the largest cluster (level of REGISTRY). Or, if you get partial output, see if the GEE Model Information table is there which will show the Correlation Matrix Dimension. The appearance of SAS freezing is probably actually due to it having to take a lot of time computationally because of a large cluster size. The time needed to estimate and display all of the correlations in a large matrix could be considerable. If you can reduce the cluster size, then that will reduce the time needed. If you intend to use only the independence or exchangeable structure, then you don't need the CORRW option. The single correlation estimate for the exchangeable structure is printed by default without the CORRW option. You could also try fitting the same model using the newer PROC GEE instead of GENMOD. 

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 1327 views
  • 0 likes
  • 2 in conversation