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