<?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 Estimating Hazards for Time-Variant Treatment Groups in PROC PHREG in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Estimating-Hazards-for-Time-Variant-Treatment-Groups-in-PROC/m-p/887734#M43981</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello, SAS community,&lt;/P&gt;&lt;P&gt;I am conducting survival analysis using the &lt;STRONG&gt;proc phreg&lt;/STRONG&gt; procedure in SAS. My dataset contains time-variant treatment variables, as the treatment status for patients may change over time, and we have measured it at each 30-day interval.&lt;/P&gt;&lt;P&gt;I want to get the estimated hazards of my outcome event for all the treated and untreated patients to calculate the absolute risk reduction. I have tried using the &lt;STRONG&gt;output&lt;/STRONG&gt; and &lt;STRONG&gt;baseline&lt;/STRONG&gt; options in proc phreg, but unfortunately, they did not work with the time-variant variables. Here is a sample of my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;proc phreg data=x out=y plots=survival; class race(ref='W');&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;model time_at_risk*outcome_t(0) = treatment female_flg race / rl;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/* Creating an array for time-variant treatment */&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;array treat_(*) drug_t_1-drug_t_30; treatment = treat_[time_at_risk]; run;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Could you please suggest an alternative approach to estimate the hazards for the treated group versus the non-treated group while considering the time-variant treatment status?&lt;/P&gt;</description>
    <pubDate>Thu, 03 Aug 2023 15:49:06 GMT</pubDate>
    <dc:creator>lay26</dc:creator>
    <dc:date>2023-08-03T15:49:06Z</dc:date>
    <item>
      <title>Estimating Hazards for Time-Variant Treatment Groups in PROC PHREG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Estimating-Hazards-for-Time-Variant-Treatment-Groups-in-PROC/m-p/887734#M43981</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello, SAS community,&lt;/P&gt;&lt;P&gt;I am conducting survival analysis using the &lt;STRONG&gt;proc phreg&lt;/STRONG&gt; procedure in SAS. My dataset contains time-variant treatment variables, as the treatment status for patients may change over time, and we have measured it at each 30-day interval.&lt;/P&gt;&lt;P&gt;I want to get the estimated hazards of my outcome event for all the treated and untreated patients to calculate the absolute risk reduction. I have tried using the &lt;STRONG&gt;output&lt;/STRONG&gt; and &lt;STRONG&gt;baseline&lt;/STRONG&gt; options in proc phreg, but unfortunately, they did not work with the time-variant variables. Here is a sample of my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;proc phreg data=x out=y plots=survival; class race(ref='W');&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;model time_at_risk*outcome_t(0) = treatment female_flg race / rl;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/* Creating an array for time-variant treatment */&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;array treat_(*) drug_t_1-drug_t_30; treatment = treat_[time_at_risk]; run;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Could you please suggest an alternative approach to estimate the hazards for the treated group versus the non-treated group while considering the time-variant treatment status?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Aug 2023 15:49:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Estimating-Hazards-for-Time-Variant-Treatment-Groups-in-PROC/m-p/887734#M43981</guid>
      <dc:creator>lay26</dc:creator>
      <dc:date>2023-08-03T15:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: Estimating Hazards for Time-Variant Treatment Groups in PROC PHREG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Estimating-Hazards-for-Time-Variant-Treatment-Groups-in-PROC/m-p/888109#M43984</link>
      <description>&lt;P&gt;PHREG does not produce hazard estimates.&amp;nbsp; The underlying model is h(t) = ho(t) * exp(xbeta) where ho(t) is an unknown and unspecified baseline hazard.&amp;nbsp; &amp;nbsp;Cox's method of partial likelihood does away with ho(t) but still estimates the coefficients.&amp;nbsp; These coefficients are exponentiated to give hazard ratios which is the main output of PHREG.&amp;nbsp; It you have time-dependent covariates (td-covars) defined by programming statements inside the PHREG step then, as you noticed, the OUTPUT and BASELINE statements are not available.&amp;nbsp; &amp;nbsp;If you could use the model (t1, t2) counting-process style of input (cp-syntax) then the BASELINE statement could be used with the CUMHAZ= keyword to get cumulative (integrated) hazard estimates.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Aug 2023 10:28:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Estimating-Hazards-for-Time-Variant-Treatment-Groups-in-PROC/m-p/888109#M43984</guid>
      <dc:creator>OsoGris</dc:creator>
      <dc:date>2023-08-07T10:28:19Z</dc:date>
    </item>
  </channel>
</rss>

