BookmarkSubscribeRSS Feed
kc
Quartz | Level 8 kc
Quartz | Level 8

I have a dataset (one row per subject) with the possibility that a subject can experience 3 events, one of them being death. I am using the following code to get cause specific hazard ratios for treatment group A vs. B at different levels of variable 'Category' for each of these 3 events. So, the 'Status' variable has 4 values, 0-no events, 1-event1, 2-event2, 3-death. And there are 5 effects including an interaction term in the model.

 

I have the following questions - 

1. Should the time variable be the number of days until the first event (among all 3) or no event occurs

2. Is the code below correct. If so, the only changes when running the code for event types 2 and 3 are the censoring values

3. When asked for an interaction p-value for the 'Category*Trt' term, does reporting the p-value from the joint tests of the SAS output the right thing to do

 

Code below for Event Type 1 (Status=1)

proc phreg data=ds;

class Trt(ref='B') Category(ref='1') Sex(ref='Female');

model T*Status(0, 2, 3) = Category  Trt  Category*Trt   Age  Sex;

hazardratio "A vs. B" Trt / at(Category=all) diff=pairwise;

run;

 

Thanks!

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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