BookmarkSubscribeRSS Feed
Lars_Andersen
Calcite | Level 5

 

As part of an analysis (I can provide additional details if needed) I need to obtain the estimate of the linear predictor (i.e. the β’x part of S(t) = S0(t) ∙ exp(β’x)) for each time point for each patient from a cox proportional hazards model with time-dependent covariates. However, I cannot figure out how to do that in SAS when the model includes a time-dependent covariate. In a simple cox model, it is relatively easy to get by specifying “baseline” and “xbeta”:

 

proc phreg data = data;

model time*event(0) = variables;

baseline covariates = data xbeta = score;

run;

 

However, the “baseline” statement does not work when you introduce a time-dependent covariate. Does anyone know how I can obtain the estimates?   

 

Much appreciated, 

 

Lars

4 REPLIES 4
Lars_Andersen
Calcite | Level 5

Hi Brian, 

 

Yes, I did previously see that but it was not clear to me that it answers my questions. Do you suggest I use the "counting process" method? 

 

Thanks, 

 

Lars

BTAinRVA
Quartz | Level 8

I would try the programming statement method first as it seems much simpler and gives the same results.

 

Lars_Andersen
Calcite | Level 5

As noted in my original post, the programming method and "baseline" statement cannot be used for models with time-dependent covariates. 

 

 

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

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
  • 4 replies
  • 1053 views
  • 0 likes
  • 2 in conversation