Help using Base SAS procedures

How do I create Multi-level hierarchical cox regression model?

Reply
New Contributor NT
New Contributor
Posts: 4

How do I create Multi-level hierarchical cox regression model?

Hello,

 

 

I have a question regarding hierarchical cox regression model.

When you have two variables for clustering, for example hospital and physician, and want to do time-to-event analysis,

is the following code appropriate? If not, is there any statement or procedure for this analysis?

 

PROC PHREG data=DATANAME covs(aggregate) covm;
model TIME.*EVENT(0)= Variables /
rl ;
id hospital Physician;
;
run;

SAS Super FREQ
Posts: 3,476

Re: How do I create Multi-level hierarchical cox regression model?

The ID statement specifies variables that identify observations in plots and in output data sets, but the ID variable doesn't change the analysis.

 

From what little information you've provided, I suggest you look at the "Analysis of Clustered Data" example in the PHREG documentation, which uses a RANDOM statement. The doc for the RANDOM statement explains the statistical details of the model that is fit when you use the RANDOM statement.

New Contributor NT
New Contributor
Posts: 4

Re: How do I create Multi-level hierarchical cox regression model?

Dear Rick_SAS,

 

Thank you very much for your reply.

I will take a look at the website.

 

 

Ask a Question
Discussion stats
  • 2 replies
  • 274 views
  • 0 likes
  • 2 in conversation