<?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 Truncated power splines in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Truncated-power-splines/m-p/841727#M41734</link>
    <description>&lt;P&gt;Dear SAS users,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question truncated power basis spline. I am studying effect of Lymphocyte/Monocyte ratio (LMR) on progression free survival. To do so, i first centered the LMR on its median value which is 2.5. Then i used the 2 following code which conducted to same results:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;/* 1 creation of truncated power basis spline */

data RELEVANCE_LMR;
set RELEVANCE_LMR;
d_ratio_l_m_c= d_ratio_l_m-2.5; /*centering the variable on its median value*/
d_ratio_l_m_c_sq = d_ratio_l_m_c**2;/*quadratic term*/
d_ratio_l_m_c_sq_plus = (d_ratio_l_m_c&amp;gt;=0)*d_ratio_l_m_c_sq;/*positive quadratic term*/

run;	


/* QUADRATIC SPLINE;*/

proc phreg data = RELEVANCE_LMR;
model D_TIME_PFS_IRC_EMA*D_CENS_PFS_IRC_EMA(1) = d_ratio_l_m_c d_ratio_l_m_c_sq d_ratio_l_m_c_sq_plus ;
output out=mydatsq Xbeta=mylinpredsq;
run;

/*second code*/
proc phreg data = RELEVANCE_LMR;
effect slmr = spline(d_ratio_l_m_c / basis=tpf(noint) degree=2 knotmethod=LIST(0));
model D_TIME_PFS_IRC_EMA*D_CENS_PFS_IRC_EMA(1) = slmr;
output out=mydatsquare Xbeta=mylinpredsquare;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;My first question is the following: When i extract linear predictors of these models and exponiate them, could you confirm me that i obtain Hazards ratio values&lt;STRONG&gt; relative&lt;/STRONG&gt; to the value of &lt;STRONG&gt;2.5&lt;/STRONG&gt;?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to add a second knot for a value of LMR=20. How can i modify the previous code to do it? ( Can i keep the&amp;nbsp;&lt;CODE class=""&gt;d_ratio_l_m_c variable&amp;nbsp;which&amp;nbsp;is&amp;nbsp;centered&amp;nbsp;on&amp;nbsp;2.5 and add 17.5 in the list option?&lt;/CODE&gt; and how hazard ratios will be interpreted (still elative to 2.5)?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help!&lt;/P&gt;</description>
    <pubDate>Mon, 31 Oct 2022 19:25:13 GMT</pubDate>
    <dc:creator>Romain69100</dc:creator>
    <dc:date>2022-10-31T19:25:13Z</dc:date>
    <item>
      <title>Truncated power splines</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Truncated-power-splines/m-p/841727#M41734</link>
      <description>&lt;P&gt;Dear SAS users,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question truncated power basis spline. I am studying effect of Lymphocyte/Monocyte ratio (LMR) on progression free survival. To do so, i first centered the LMR on its median value which is 2.5. Then i used the 2 following code which conducted to same results:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;/* 1 creation of truncated power basis spline */

data RELEVANCE_LMR;
set RELEVANCE_LMR;
d_ratio_l_m_c= d_ratio_l_m-2.5; /*centering the variable on its median value*/
d_ratio_l_m_c_sq = d_ratio_l_m_c**2;/*quadratic term*/
d_ratio_l_m_c_sq_plus = (d_ratio_l_m_c&amp;gt;=0)*d_ratio_l_m_c_sq;/*positive quadratic term*/

run;	


/* QUADRATIC SPLINE;*/

proc phreg data = RELEVANCE_LMR;
model D_TIME_PFS_IRC_EMA*D_CENS_PFS_IRC_EMA(1) = d_ratio_l_m_c d_ratio_l_m_c_sq d_ratio_l_m_c_sq_plus ;
output out=mydatsq Xbeta=mylinpredsq;
run;

/*second code*/
proc phreg data = RELEVANCE_LMR;
effect slmr = spline(d_ratio_l_m_c / basis=tpf(noint) degree=2 knotmethod=LIST(0));
model D_TIME_PFS_IRC_EMA*D_CENS_PFS_IRC_EMA(1) = slmr;
output out=mydatsquare Xbeta=mylinpredsquare;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;My first question is the following: When i extract linear predictors of these models and exponiate them, could you confirm me that i obtain Hazards ratio values&lt;STRONG&gt; relative&lt;/STRONG&gt; to the value of &lt;STRONG&gt;2.5&lt;/STRONG&gt;?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to add a second knot for a value of LMR=20. How can i modify the previous code to do it? ( Can i keep the&amp;nbsp;&lt;CODE class=""&gt;d_ratio_l_m_c variable&amp;nbsp;which&amp;nbsp;is&amp;nbsp;centered&amp;nbsp;on&amp;nbsp;2.5 and add 17.5 in the list option?&lt;/CODE&gt; and how hazard ratios will be interpreted (still elative to 2.5)?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for your help!&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 19:25:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Truncated-power-splines/m-p/841727#M41734</guid>
      <dc:creator>Romain69100</dc:creator>
      <dc:date>2022-10-31T19:25:13Z</dc:date>
    </item>
  </channel>
</rss>

