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.
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).
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).
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.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.