BookmarkSubscribeRSS Feed
_MooMoo
Obsidian | Level 7

Hello,

 

I am wrapping my head around to figure out how to model stratified cox ph model. 

Assuming baseline hazard change over time, I partitioned follow-up time into two time intervals. 1 time interval for early to mid period and another time interval for late period. For example, let's say a person was followed 10 years, which can be represented as (0,10). I partitioned this time interval into two pieces such as (0, 8 ) falls into first stratum (time_strata=1) and (8,10) falls into second stratum (time_strata=2). 

 

Suppose the main covariate I am interested in is X1 and partition data set is data set I partitioned the follow-up time into two time-intervals from original data set. I coded SAS as below...

proc phreg=partition;

 class X1;

 model Y=X1;

 strata time_strata;

run;

The code above gives me the exact same output as below code...

proc phreg=original;

 class X1;

 model Y=X1;

run;

 

Why is this happening? Can I perform stratified analysis in this way (having time interval as strata)? If not, any other suggestions are appreciated.

Thanks in advance!

 

2 REPLIES 2
pink_poodle
Barite | Level 11
Does it give you the Summary of the Stratum Levels table in case when you have the strata statement?
_MooMoo
Obsidian | Level 7

As I more think about this, I think the approach I explained above is wrong. Since time dependency of risk getting main outcome is already absorbed in the baseline hazard rate even though I did not stratify by time interval, there is no point running stratified cox regression where stratification level is time interval.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1458 views
  • 0 likes
  • 2 in conversation