BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
_MooMoo
Obsidian | Level 7

Hello SAS communities! 

 

I am working with time-to-event data and the main exposure is a three level categorical variable (X is either 0 or 1 or 2). I ran proc phreg and got two hazard ratio estimates which compares 1) 0 vs. 1 2) 0 vs. 2 when I am setting X=0 as reference level. I am wondering if this statistically means the same thing when I subset two data sets, one with X=0 and 1 and another with X=0 and 2. And if I run two separate cox regression, will I get the same estimate? 

 

Any advice is appreciated!

 

1 ACCEPTED SOLUTION

Accepted Solutions
OsoGris
SAS Employee

I don't think you will get the same estimates if you split the data.  It makes more sense to use one data set for this analysis. 

View solution in original post

1 REPLY 1
OsoGris
SAS Employee

I don't think you will get the same estimates if you split the data.  It makes more sense to use one data set for this analysis. 

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 928 views
  • 0 likes
  • 2 in conversation