<?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 Spline for hazard ratio after PROC PHREG in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Spline-for-hazard-ratio-after-PROC-PHREG/m-p/892013#M352362</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*Spline for hazard ratios*/
%macro SplineHR;
proc phreg data = &amp;amp;raw_data_name plots = cumhaz;
class &amp;amp;class_var;
effect SplALB = spline(serumAlb/naturalcubic);
model &amp;amp;length*&amp;amp;censor(0) = &amp;amp;indep_list / rl=Wald;
*effectplot fit(x=serumAlb);
*effectplot fit(x=serumAlb) / link;
hazardratio serumAlb / at(serumAlb = 25 to 45);
run;
%mend;
%SplineHR&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hello, everyone.&lt;/P&gt;
&lt;P&gt;With the above macro and other codes, I indeed got the expected outcome. But, unlike PROC LOGISTIC, they are listed as a table instead of a spline plot. Any suggestion for making the plot? Thanks.&lt;/P&gt;</description>
    <pubDate>Thu, 31 Aug 2023 17:23:47 GMT</pubDate>
    <dc:creator>TomHsiung</dc:creator>
    <dc:date>2023-08-31T17:23:47Z</dc:date>
    <item>
      <title>Spline for hazard ratio after PROC PHREG</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Spline-for-hazard-ratio-after-PROC-PHREG/m-p/892013#M352362</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*Spline for hazard ratios*/
%macro SplineHR;
proc phreg data = &amp;amp;raw_data_name plots = cumhaz;
class &amp;amp;class_var;
effect SplALB = spline(serumAlb/naturalcubic);
model &amp;amp;length*&amp;amp;censor(0) = &amp;amp;indep_list / rl=Wald;
*effectplot fit(x=serumAlb);
*effectplot fit(x=serumAlb) / link;
hazardratio serumAlb / at(serumAlb = 25 to 45);
run;
%mend;
%SplineHR&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hello, everyone.&lt;/P&gt;
&lt;P&gt;With the above macro and other codes, I indeed got the expected outcome. But, unlike PROC LOGISTIC, they are listed as a table instead of a spline plot. Any suggestion for making the plot? Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Aug 2023 17:23:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Spline-for-hazard-ratio-after-PROC-PHREG/m-p/892013#M352362</guid>
      <dc:creator>TomHsiung</dc:creator>
      <dc:date>2023-08-31T17:23:47Z</dc:date>
    </item>
  </channel>
</rss>

