<?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: exporting hazards ratio by a continous predictor in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/exporting-hazards-ratio-by-a-continous-predictor/m-p/480609#M71552</link>
    <description>&lt;P&gt;Thanks &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/183379"&gt;@pau13rown&lt;/a&gt;, but is this the way to do it when the relationship is non-linear as well?&lt;/P&gt;</description>
    <pubDate>Mon, 23 Jul 2018 19:36:52 GMT</pubDate>
    <dc:creator>Ubai</dc:creator>
    <dc:date>2018-07-23T19:36:52Z</dc:date>
    <item>
      <title>exporting hazards ratio by a continous predictor</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/exporting-hazards-ratio-by-a-continous-predictor/m-p/480276#M71535</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using PROC PHREG to estimate the hazards ratio of death in a multivariable model with one continuous variable of particular interest. I would like to plot hazards ratio by this variable. This question has been asked here before, but it was not answered clearly. The problem does not lie in plotting the hazards ratio but rather in exporting this for each value of the variable of interest. I tried several statements in PROC PHREG and didn't come to my wish. Very simplified my model looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; proc phreg data=mydata;
	strata var1;
	class var2 var3;
	model Time*censor(0) = ContinousVar var2 var3;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This is the plot I am trying to generate. As you can see I need the hazards ratio by different values of the variable of interest as well as the confidence interval.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AzAzC" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21910iE5E4E94A77A8B975/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AzAzC" alt="AzAzC" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would appreciate any help.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Jul 2018 21:28:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/exporting-hazards-ratio-by-a-continous-predictor/m-p/480276#M71535</guid>
      <dc:creator>Ubai</dc:creator>
      <dc:date>2018-07-22T21:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: exporting hazards ratio by a continous predictor</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/exporting-hazards-ratio-by-a-continous-predictor/m-p/480293#M71536</link>
      <description>&lt;P&gt;but once you have the model estimates you can just calculate the HR for any range of values of the continuous variable ie do it in a data step rather than exporting from phreg&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;edit, something like:&lt;/P&gt;&lt;P&gt;ods output parameterestimates=out (keep=estimate parameter where=(parameter="xxxxx"));&lt;BR /&gt;proc phreg data=xxxxx;&lt;BR /&gt;&amp;nbsp; class aaa bbb ccc;&lt;BR /&gt;&amp;nbsp; model surv*cens(1)= ...../ rl alpha=0.05;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;data .....;&lt;BR /&gt;&amp;nbsp; set out;&lt;BR /&gt;&amp;nbsp; do x=.... to .... by ....;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; val=exp(estimate*x);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; output;&lt;BR /&gt;&amp;nbsp; end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;??&lt;/P&gt;</description>
      <pubDate>Sun, 22 Jul 2018 22:42:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/exporting-hazards-ratio-by-a-continous-predictor/m-p/480293#M71536</guid>
      <dc:creator>pau13rown</dc:creator>
      <dc:date>2018-07-22T22:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: exporting hazards ratio by a continous predictor</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/exporting-hazards-ratio-by-a-continous-predictor/m-p/480609#M71552</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/183379"&gt;@pau13rown&lt;/a&gt;, but is this the way to do it when the relationship is non-linear as well?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 19:36:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/exporting-hazards-ratio-by-a-continous-predictor/m-p/480609#M71552</guid>
      <dc:creator>Ubai</dc:creator>
      <dc:date>2018-07-23T19:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: exporting hazards ratio by a continous predictor</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/exporting-hazards-ratio-by-a-continous-predictor/m-p/480630#M71553</link>
      <description>&lt;P&gt;i would think so, ie write the model out as it should be in the data step (with any nonlinear terms) and then see if the plot makes sense. Eg these authors found "a significant nonlinear relationship with regard to the composite of death/HF hospitalization (&lt;EM&gt;P&lt;/EM&gt; = 0.0039), with a plateau of effect beyond 180 ms for the composite outcome" [&lt;A href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3855551/" target="_blank"&gt;https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3855551/&lt;/A&gt;] and this is seen in the plot: &lt;A href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3855551/figure/EHT290F3/?report=objectonly" target="_blank"&gt;https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3855551/figure/EHT290F3/?report=objectonly&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it is a shame that authors don't routinely make programming code available on publication&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 20:47:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/exporting-hazards-ratio-by-a-continous-predictor/m-p/480630#M71553</guid>
      <dc:creator>pau13rown</dc:creator>
      <dc:date>2018-07-23T20:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: exporting hazards ratio by a continous predictor</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/exporting-hazards-ratio-by-a-continous-predictor/m-p/480632#M71554</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/183379"&gt;@pau13rown&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;it is a shame that authors don't routinely make programming code available on publication&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I absolutely agree. I have asked here before for example analysis of clinical trials and prospective or retrospective studies. Unfortunately, not much was available. I would appreciate it if you have any that I can learn from.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the answer.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 20:48:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/exporting-hazards-ratio-by-a-continous-predictor/m-p/480632#M71554</guid>
      <dc:creator>Ubai</dc:creator>
      <dc:date>2018-07-23T20:48:37Z</dc:date>
    </item>
  </channel>
</rss>

