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

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

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