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

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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