BookmarkSubscribeRSS Feed
Quartz | Level 8

Hi, everyone


I just learned how to process time-varying data in PROC PHREG but I only know how to do so for a data set that has only one time-varying variable. I wonder if is it possible to do the time-dependent Cox regression with two, three, or more independent cofactors (i.e., observations received several different exposures at different times). Thanks.

Quartz | Level 8

I have read parts of this paper ( In the statistical method section, it described,


Daily medication exposure and processes of care (sedative, acid inhibitors, blood transfusion, mandatory ventilation, and head-of-bed elevation, gastrointestinal decompression, and rehabilitation exercise) and medications (sedatives, opioids, neuromuscular blockers, immunosuppressive agent, neuroleptic agents, antibiotics, expectorants, vasopressors, intestinal probiotics, and neuroleptic agents) were defined as time-varying variables. Time-varying variables were measured as daily exposure from initiation of MV to the event of interested for the model of VAEs and each day from ICU admission to ICU discharge for the model of ICU discharge and ICU mortality.


It looks like the authors included a dozen time-varying cofactors in their Cox regression model. So, I wonder how they handled the dataset. Each patient could have a dozen time-varying cofactors, and each such cofactor could have several different values. To record the data into a dataset must be a tough mission but I don't know how they did it.


Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.


Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 1 in conversation