BookmarkSubscribeRSS Feed
KPCklebspn
Obsidian | Level 7

Hi all,


I want 3 random intercepts (hospital, unit, room). When I program the intercept only model, I get 0 as the room level variance estimate which seems wrong. Did I program it correctly?

 

proc glimmix data = master;
class Hospital UniqueUnit UniqueRm;
model Result1 = / dist=bin solution cl link=logit oddsratio;
random int / subject=hospital type=un s;
random int / subject=UniqueUnit(hospital) type=un s;
random int / subject=UniqueRm (UniqueUnit hospital) type=un s;
run;

 

Thanks!

2 REPLIES 2
KPCklebspn
Obsidian | Level 7

To clarify the data has 4 levels: patient, room, unit, hospital

PGStats
Opal | Level 21

You would need more than one patient per room to estimate the room level variance.

PG

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
  • 2 replies
  • 531 views
  • 1 like
  • 2 in conversation