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. 

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!

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