BookmarkSubscribeRSS Feed
lillymaginta1
Obsidian | Level 7

I am trying to enter physician ID as a random effect in a cox model. Any thoughts how to specify that in the following statement? 

proc phreg data=s namelen=32 covsandwich(aggregate);
   class drug;
   model period*outcome(0)= drug  / risklimits;
   id mch; run;

 

1 REPLY 1
sbxkoenk
SAS Super FREQ

Hello @lillymaginta1 ,

 

There's a RANDOM statement in PROC PHREG.

I know that the RANDOM statement (in PROC PHREG) enables you to fit a shared frailty model for clustered data. You can use the frailty model to model correlations between failures of the same cluster. To me frailty models are random effects models (frailties are the exponential transformations of the random components)

, but I cannot tell you more.

I am not very familiar with Cox regression.

 

I think it's best that someone moves this topic to the "Statistical Procedures" board under the Analytics header.

[ You will much more likely get a good answer over there. ]

Analytics > Statistical Procedures.

I do not have the superpowers to do so.

Can someone (with superpowers) move this thread to "Statistical Procedures" board?? Thanks!

 

Good luck,

Koen

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

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 989 views
  • 1 like
  • 2 in conversation