<?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 Re: Hazard plot adjusted for covariates in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Hazard-plot-adjusted-for-covariates/m-p/787992#M81371</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS 9.4 / Viya 3.5&lt;BR /&gt;SAS/STAT User's Guide&lt;BR /&gt;The ICPHREG Procedure&lt;BR /&gt;Example 69.2 Plotting Predicted Survival and Cumulative Hazard Functions&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#00FF00"&gt;&lt;SPAN&gt;This example illustrates how to plot the predicted survival and cumulative hazard functions for specified covariate patterns.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_icphreg_examples02.htm?homeOnFail" target="_blank" rel="noopener"&gt;https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_icphreg_examples02.htm?homeOnFail&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL noprint;
 create table cov as 
 select distinct group
 from sashelp.BMT ;
QUIT;
 
PROC ICPHREG data=sashelp.BMT plot=cumhaz /*plot=surv*/;
 class group / desc;
 model  T * Status(0)=group / basehaz=splines;
 baseline covariates=cov;
run;
/* end of program */&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I could not find the immediate equivalent in PROC PHREG. (I just had a quick 30-seconds look though)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
    <pubDate>Sat, 01 Jan 2022 18:06:04 GMT</pubDate>
    <dc:creator>sbxkoenk</dc:creator>
    <dc:date>2022-01-01T18:06:04Z</dc:date>
    <item>
      <title>Hazard plot adjusted for covariates</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Hazard-plot-adjusted-for-covariates/m-p/787986#M81370</link>
      <description>&lt;P&gt;Hi everyone,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Continuing the theme of hazard plots, you can get an (unadjusted) hazard plot using the example below:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods select HazardPlot;
ods graphics on;
proc lifetest data=sashelp.BMT plots=hazard;
   time T * Status(0);
run;
ods graphics off;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Say that the variable (Group) is an important factor when it comes to the risk of developing the outcome of interest and hence you would want to adjust for it, you can of course do that with Cox regression:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc phreg data=sashelp.BMT ;
class group;
model  T * Status(0)=group;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;So, going back to the plot of hazards, how can I get a hazards plot adjusting for the variable group?&lt;/P&gt;
&lt;P&gt;Thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Jan 2022 11:50:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Hazard-plot-adjusted-for-covariates/m-p/787986#M81370</guid>
      <dc:creator>ammarhm</dc:creator>
      <dc:date>2022-01-01T11:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Hazard plot adjusted for covariates</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Hazard-plot-adjusted-for-covariates/m-p/787992#M81371</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS 9.4 / Viya 3.5&lt;BR /&gt;SAS/STAT User's Guide&lt;BR /&gt;The ICPHREG Procedure&lt;BR /&gt;Example 69.2 Plotting Predicted Survival and Cumulative Hazard Functions&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#00FF00"&gt;&lt;SPAN&gt;This example illustrates how to plot the predicted survival and cumulative hazard functions for specified covariate patterns.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_icphreg_examples02.htm?homeOnFail" target="_blank" rel="noopener"&gt;https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_icphreg_examples02.htm?homeOnFail&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL noprint;
 create table cov as 
 select distinct group
 from sashelp.BMT ;
QUIT;
 
PROC ICPHREG data=sashelp.BMT plot=cumhaz /*plot=surv*/;
 class group / desc;
 model  T * Status(0)=group / basehaz=splines;
 baseline covariates=cov;
run;
/* end of program */&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I could not find the immediate equivalent in PROC PHREG. (I just had a quick 30-seconds look though)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Sat, 01 Jan 2022 18:06:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Hazard-plot-adjusted-for-covariates/m-p/787992#M81371</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2022-01-01T18:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Hazard plot adjusted for covariates</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Hazard-plot-adjusted-for-covariates/m-p/788002#M81372</link>
      <description>&lt;P&gt;Thank you Koen,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The only issue is that this plots the &lt;FONT color="#FF0000"&gt;&lt;U&gt;&lt;STRONG&gt;cumulative&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt; hazard, which is not the same as the (instantaneous ) hazard rate that you get using proc lifetest with plots=hazard function.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I am trying to get is the &lt;FONT color="#FF0000"&gt;adjusted hazard &lt;U&gt;&lt;STRONG&gt;rate&lt;/STRONG&gt;&lt;/U&gt;&lt;/FONT&gt;, and not the adjusted cumulative hazard plot.&lt;/P&gt;
&lt;P&gt;Much appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Jan 2022 21:20:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Hazard-plot-adjusted-for-covariates/m-p/788002#M81372</guid>
      <dc:creator>ammarhm</dc:creator>
      <dc:date>2022-01-01T21:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: Hazard plot adjusted for covariates</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Hazard-plot-adjusted-for-covariates/m-p/788004#M81374</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then replace &lt;BR /&gt;&lt;FONT face="courier new,courier" color="#FF0000"&gt;plot=cumhaz&lt;/FONT&gt;&lt;BR /&gt;by&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier" color="#339966"&gt;plot=hazard&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;and you get that, no?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Sat, 01 Jan 2022 21:32:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Hazard-plot-adjusted-for-covariates/m-p/788004#M81374</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2022-01-01T21:32:08Z</dc:date>
    </item>
  </channel>
</rss>

