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;
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
April 27 – 30 | Gaylord Texan | Grapevine, Texas
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!
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.
Ready to level-up your skills? Choose your own adventure.