BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
kc
Quartz | Level 8 kc
Quartz | Level 8
Hello, I am trying to see the impact of treatment group on an event using the repeat event analysis by creating a counting dataset. But, I need the HR's in different time intervals (3 intervals) for the treatment group. After creating the start and end time variables in the dataset, I used the ‘end’ time variable to create ‘Time_Interval’ (code below). The issue is, although the HR’s for time interval 2 and 3 make sense clinically, HR for interval 1 is way off base. My question is whether the ‘Time_Interval’ calculation should be based on the ‘end’ time variable in the first place? If not, can someone point me in the right direction of how to accomplish this task? Thanks! Code: if 0 <= end <= 30 then Time_Interval='0-30D'; if 30 < end <= 365 then Time_Interval='30D-1Y'; if 365 < end <= 1825 then Time_Interval='1-5Y'; proc phreg data=counting_dataset covs(aggregate) covm; class group (ref='Trt2') Time_ Interval; model (start, end)*event_flag(0 2) = group Time_ Interval group*Time_ Interval / ties=breslow; id Subject; hazardratio 'HR Trt1 vs. Trt2' group ; run;
1 ACCEPTED SOLUTION

Accepted Solutions
OsoGris
SAS Employee

Please open a tech support ticket and I can send you some materials on hazard ratios over time.   By the way, if you are using the model (t1, t2) counting process syntax it would be appropriate to use t2 in any programming. 

View solution in original post

1 REPLY 1
OsoGris
SAS Employee

Please open a tech support ticket and I can send you some materials on hazard ratios over time.   By the way, if you are using the model (t1, t2) counting process syntax it would be appropriate to use t2 in any programming. 

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
  • 1 reply
  • 819 views
  • 1 like
  • 2 in conversation