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
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.