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

Dear all,

 

If you have binomial data for which the group sizes differ, how do you correct for it in proc glimmix?

 

For example:

 

proc glimmix data=name;

class var1 var2;

model y/n=var1 var2 / dist=binomial link=logit;

random randomvariable;

run;

 

y is for example the number of affected individuals per group that differs in size (n). I have been told that you can correct for this by adding an overdispersion parameter 'random _residual_;' but I am not too confident about this. Anyone have any ideas? Thanks in advance.

1 ACCEPTED SOLUTION

Accepted Solutions
lvm
Rhodochrosite | Level 12 lvm
Rhodochrosite | Level 12

You don't need to correct for this -- it is automatically taken care of. Do not use the 'random _residual_" statement for this purpose (this is for overdispersion: high variability than one would obtain with a binomial distribution).

View solution in original post

3 REPLIES 3
lvm
Rhodochrosite | Level 12 lvm
Rhodochrosite | Level 12

You don't need to correct for this -- it is automatically taken care of. Do not use the 'random _residual_" statement for this purpose (this is for overdispersion: high variability than one would obtain with a binomial distribution).

JacobSimonsen
Barite | Level 11
Agree. And further, since the random-statement is not neccessary, it may be better to use a procedure (proc logistics) that is specialized for logistic regression.
DDK
Obsidian | Level 7 DDK
Obsidian | Level 7

Thanks, thought it was a bit weird to correct for unequal sizes using an overdispersion parameter. Good to hear a confirmation that it is not necessary to do so.

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
  • 1753 views
  • 5 likes
  • 3 in conversation