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 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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