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-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

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