BookmarkSubscribeRSS Feed
MeasuringHealth
Fluorite | Level 6

Hi everyone,

 

Is it a problem if the subgroups specified by nesting in my RANDOM statement are unbalanced? For example, below you can see id(Diagnosis) where there are 5 diagnoses but the number of ids (patients) with each diagnosis range from 8 to 16 (e.g. 8 patients have diabetes, 16 patients have cancer, 10 patients have epilepsy). Do I need to adjust for this in my syntax? If so, what syntax do I need to add? 

 

PROC GLIMMIX DATA=CONC_long; 
         CLASS Time (ref= '1') Diagnosis; 
         MODEL LoHiSev = Composite / dist=binomial link=logit solution; 
         RANDOM intercept / subject=id(Diagnosis) type=CS;
         OUTPUT out=preAUCnested1 pred=xbeta pred(ilink)=predprob pred(ilink noblup)=fix_predprob;
RUN;

Thank you, SAS Community!

 

Best,

MeasuringHealth

1 REPLY 1
Haris
Lapis Lazuli | Level 10
Generically speaking, SAS takes care of the imbalance for you. But, if you give us the research question you are trying to test and more details on your design you may get useful input. For example, do you know that Diagnosis is not used in the model structure of this GLIMMIX model outside of distinguishing among IDs across different diagnoses? Your model has a g-matrix with N*N dimensions. Diagnosis is not part of your model and, therefore, your balancing question is not relevant.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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
  • 1 reply
  • 798 views
  • 0 likes
  • 2 in conversation