<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Hazard Ratio for different time intervals in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Hazard-Ratio-for-different-time-intervals/m-p/715513#M34604</link>
    <description>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 &amp;lt;= end &amp;lt;= 30 then Time_Interval='0-30D';
if 30 &amp;lt; end &amp;lt;= 365 then Time_Interval='30D-1Y';
if 365 &amp;lt; end  &amp;lt;= 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;</description>
    <pubDate>Sat, 30 Jan 2021 04:32:49 GMT</pubDate>
    <dc:creator>kc</dc:creator>
    <dc:date>2021-01-30T04:32:49Z</dc:date>
    <item>
      <title>Hazard Ratio for different time intervals</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Hazard-Ratio-for-different-time-intervals/m-p/715513#M34604</link>
      <description>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 &amp;lt;= end &amp;lt;= 30 then Time_Interval='0-30D';
if 30 &amp;lt; end &amp;lt;= 365 then Time_Interval='30D-1Y';
if 365 &amp;lt; end  &amp;lt;= 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;</description>
      <pubDate>Sat, 30 Jan 2021 04:32:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Hazard-Ratio-for-different-time-intervals/m-p/715513#M34604</guid>
      <dc:creator>kc</dc:creator>
      <dc:date>2021-01-30T04:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Hazard Ratio for different time intervals</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Hazard-Ratio-for-different-time-intervals/m-p/716092#M34637</link>
      <description>&lt;P&gt;Please open a tech support ticket and I can send you some materials on hazard ratios over time.&amp;nbsp; &amp;nbsp;By the way, if you are using the model (t1, t2) counting process syntax it would be appropriate to use t2 in any programming.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 15:02:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Hazard-Ratio-for-different-time-intervals/m-p/716092#M34637</guid>
      <dc:creator>OsoGris</dc:creator>
      <dc:date>2021-02-02T15:02:42Z</dc:date>
    </item>
  </channel>
</rss>

