<?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 Age was treated as a spline variable in cox model and I got an interesting note... in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Age-was-treated-as-a-spline-variable-in-cox-model-and-I-got-an/m-p/964985#M48401</link>
    <description>&lt;P&gt;I tried to use phreg (code shown below) to calculate the Hazard Ratios of these variables and here age was included as a spline.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc phreg data=test; 
effect spl_age = spline(age / basis=bspline knotmethod=percentilelist(25 75) );
class sex(ref="0") race(ref="0") Hypertension(ref="0") 
Diabetes(ref="0") 
Region(ref="0"); 
model (start,stop)*Censor(0)= sex race Hypertension Diabetes Region 
spl_age/ risklimits eventcode=1;     
id usubjid; 
run;&lt;/PRE&gt;
&lt;P&gt;The code works but I got a message show below: Hazard ratios that cannot be conveniently calculated or displayed are set to missing in the ParameterEstimates table. Use the HAZARDRAT10 statement to compute the needed hazard ratios. I wonder if anything wrong with the code, especially age was treated as a spline. Many thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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="SeaMoon_168_0-1745435874177.png" style="width: 608px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/106476i513CC439A64F6444/image-dimensions/608x64?v=v2" width="608" height="64" role="button" title="SeaMoon_168_0-1745435874177.png" alt="SeaMoon_168_0-1745435874177.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Apr 2025 19:26:42 GMT</pubDate>
    <dc:creator>SeaMoon_168</dc:creator>
    <dc:date>2025-04-23T19:26:42Z</dc:date>
    <item>
      <title>Age was treated as a spline variable in cox model and I got an interesting note...</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Age-was-treated-as-a-spline-variable-in-cox-model-and-I-got-an/m-p/964985#M48401</link>
      <description>&lt;P&gt;I tried to use phreg (code shown below) to calculate the Hazard Ratios of these variables and here age was included as a spline.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc phreg data=test; 
effect spl_age = spline(age / basis=bspline knotmethod=percentilelist(25 75) );
class sex(ref="0") race(ref="0") Hypertension(ref="0") 
Diabetes(ref="0") 
Region(ref="0"); 
model (start,stop)*Censor(0)= sex race Hypertension Diabetes Region 
spl_age/ risklimits eventcode=1;     
id usubjid; 
run;&lt;/PRE&gt;
&lt;P&gt;The code works but I got a message show below: Hazard ratios that cannot be conveniently calculated or displayed are set to missing in the ParameterEstimates table. Use the HAZARDRAT10 statement to compute the needed hazard ratios. I wonder if anything wrong with the code, especially age was treated as a spline. Many thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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="SeaMoon_168_0-1745435874177.png" style="width: 608px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/106476i513CC439A64F6444/image-dimensions/608x64?v=v2" width="608" height="64" role="button" title="SeaMoon_168_0-1745435874177.png" alt="SeaMoon_168_0-1745435874177.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2025 19:26:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Age-was-treated-as-a-spline-variable-in-cox-model-and-I-got-an/m-p/964985#M48401</guid>
      <dc:creator>SeaMoon_168</dc:creator>
      <dc:date>2025-04-23T19:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Age was treated as a spline variable in cox model and I got an interesting note...</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Age-was-treated-as-a-spline-variable-in-cox-model-and-I-got-an/m-p/965001#M48402</link>
      <description>I think that is because you are using spline(non-linear) effect for AGE. sas can not easily calculate HR as other variables by using EXP option of model.&lt;BR /&gt;Therefore , you need special statement to get it. Like:&lt;BR /&gt;&lt;BR /&gt;model (start,stop)*Censor(0)= sex race Hypertension Diabetes Region spl_age/ risklimits eventcode=1;&lt;BR /&gt;HAZARDRATIO  age;</description>
      <pubDate>Thu, 24 Apr 2025 01:45:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Age-was-treated-as-a-spline-variable-in-cox-model-and-I-got-an/m-p/965001#M48402</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-04-24T01:45:03Z</dc:date>
    </item>
  </channel>
</rss>

