BookmarkSubscribeRSS Feed
Denali
Quartz | Level 8

I am working on a project that aims to prove receiving cardioprotective drug at the time of first dose of chemotherapy will reduce the risk of cardiovescular event among cancer patients. I used the Cox proportional hazard model since it is a time-to-event analysis. 

 

Some patients did not receive cardioprotective drug throughout the chemo treatment period (No CardioTx Group), some patients received cardioprotective drug at the time of first dose of chemo (Early CardioTx Group), and some received cardioprotective drug after the first dose of chemotherapy (Late CardioTx Group).

 

Initially, I conducted a Cox model using cardiact event as outcome, and the timing of CardioTx (0=No, 1 = Early, 2=Late) as its predictor, but this is not right because Late CardioTx Group received the cardioprotective drug after baseline (first dose of chemo). I would like to treat the timing of receiving CardioTX as a time-varying covariate in Cox model instead.

 

We have date of first dose of chemo, and date of CardioTx in the dataset. How do I code the time-varing covariate to represent the timing of receiving CardioTX?

 

My initial SAS code is below:

 

proc phreg data = test;
model followuptime*cardiacevent(0) = CardioTx/rl;
run;

 

Thank you in advance!

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
  • 0 replies
  • 48 views
  • 0 likes
  • 1 in conversation