<?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 Splines in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Splines/m-p/839036#M41545</link>
    <description>&lt;P&gt;Hi sas users!&lt;/P&gt;&lt;P&gt;I am currently working on a study assessing the link between the Lymphocyte/Monocyte ratio and the progression free survival.&lt;/P&gt;&lt;P&gt;I would like to use this ratio as a spline in my model (Truncated power basis).&lt;/P&gt;&lt;P&gt;So far i did this:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc phreg data = RELEVANCE_LMR;
effect slmr = spline(d_ratio_l_m_c / basis=tpf(noint) degree=3 knotmethod=EQUAL(1));
model D_TIME_PFS_IRC_EMA*D_CENS_PFS_IRC_EMA(1) = slmr/;
output out=mydatcub Xbeta=mylinpredcub;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;d_ratio_l_m_c represents my ratio which is centered on the median value (2.5). I would like to have only one knot corresponding to the median value (2.5), however i cannot how to retrieve the knot position after performing the "knotmethod=EQUAL(1)". Do you have any idea to find it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help&lt;/P&gt;</description>
    <pubDate>Mon, 17 Oct 2022 18:11:45 GMT</pubDate>
    <dc:creator>Romain69100</dc:creator>
    <dc:date>2022-10-17T18:11:45Z</dc:date>
    <item>
      <title>Splines</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Splines/m-p/839036#M41545</link>
      <description>&lt;P&gt;Hi sas users!&lt;/P&gt;&lt;P&gt;I am currently working on a study assessing the link between the Lymphocyte/Monocyte ratio and the progression free survival.&lt;/P&gt;&lt;P&gt;I would like to use this ratio as a spline in my model (Truncated power basis).&lt;/P&gt;&lt;P&gt;So far i did this:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc phreg data = RELEVANCE_LMR;
effect slmr = spline(d_ratio_l_m_c / basis=tpf(noint) degree=3 knotmethod=EQUAL(1));
model D_TIME_PFS_IRC_EMA*D_CENS_PFS_IRC_EMA(1) = slmr/;
output out=mydatcub Xbeta=mylinpredcub;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;d_ratio_l_m_c represents my ratio which is centered on the median value (2.5). I would like to have only one knot corresponding to the median value (2.5), however i cannot how to retrieve the knot position after performing the "knotmethod=EQUAL(1)". Do you have any idea to find it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for your help&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 18:11:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Splines/m-p/839036#M41545</guid>
      <dc:creator>Romain69100</dc:creator>
      <dc:date>2022-10-17T18:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Splines</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Splines/m-p/839038#M41547</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Put the &lt;STRONG&gt;details&lt;/STRONG&gt; option in your spline specification, just like here :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc orthoreg data=sashelp.gas;
   effect spl = spline(eqratio / knotmethod=equal(3) details);
   class fuel;
   model nox = spl | fuel;
   effectplot / obs extend=data;
   ods output SliceFitPlot=sp;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That DETAILS option is documented here :&lt;/P&gt;
&lt;P&gt;SAS/STAT 15.2 User's Guide&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_introcom_sect020.htm" target="_blank" rel="noopener"&gt;https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_introcom_sect020.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DETAILS&lt;BR /&gt;requests tables that show the knot locations and the knots associated with each spline basis function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 18:23:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Splines/m-p/839038#M41547</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2022-10-17T18:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Splines</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Splines/m-p/839039#M41548</link>
      <description>&lt;P&gt;Thank you for your answer!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know how to force the knot position ?&lt;/P&gt;&lt;P&gt;Romain&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 18:36:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Splines/m-p/839039#M41548</guid>
      <dc:creator>Romain69100</dc:creator>
      <dc:date>2022-10-17T18:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: Splines</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Splines/m-p/839044#M41549</link>
      <description>&lt;P&gt;Use KNOTMETHOD=LIST(list-of-values). But note that if you want to specify knots at percentiles, like the median, you can use KNOTMETHOD=PERCENTILELIST(list-of-percentiles). See all of the options in the &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/statug/statug_introcom_sect020.htm" target="_self"&gt;EFFECT statement documentation for splines&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 19:01:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Splines/m-p/839044#M41549</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2022-10-17T19:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Splines</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Splines/m-p/839046#M41550</link>
      <description>&lt;P&gt;Thank you for your answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just want to specify one knot which will be located at the median value of the Lymphocyte/Monocyte ratio. This value eq 2.5.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my model, as i have centered my Ratio on the median value, i want my knot to be equal to 0. How can i specify this in the following statement?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;effect slmr = spline(d_ratio_l_m_c / basis=tpf(noint) degree=3 knotmethod=EQUAL(1))&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 17 Oct 2022 19:14:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Splines/m-p/839046#M41550</guid>
      <dc:creator>Romain69100</dc:creator>
      <dc:date>2022-10-17T19:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: Splines</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Splines/m-p/839049#M41551</link>
      <description>Use the LIST() option as I mentioned. Replace EQUAL(1) with LIST(0) in KNOTMETHOD=.</description>
      <pubDate>Mon, 17 Oct 2022 19:27:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Splines/m-p/839049#M41551</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2022-10-17T19:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Splines</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Splines/m-p/839055#M41553</link>
      <description>Tanks i tried your solution. Unfortunately i do not have an estimation for the last coefficient. Please find a screenshot below.&lt;BR /&gt;&lt;BR /&gt;Analysis of Maximum Likelihood Estimates&lt;BR /&gt;Parameter / / DF / Parameter Estimate / Standard Error / Chi-Square / Pr &amp;gt; ChiSq / Hazard Ratio / Label&lt;BR /&gt;slmr / 1 / 1 / -0.01131 / 0.02359 / 0.2299 / 0.6316 /. / slmr 1&lt;BR /&gt;slmr / 2 / 1 / 0.00113 / 0.0009973 / 1.2939 0.2553 / . / slmr 2&lt;BR /&gt;slmr / 3 / 1 / -0.0000127 / 9.49004E-6 1.7897 / 0.1810 / . / slmr 3&lt;BR /&gt;slmr / 4 / 0 / 0/ . / . / . / . /slmr 4&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Oct 2022 19:42:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Splines/m-p/839055#M41553</guid>
      <dc:creator>Romain69100</dc:creator>
      <dc:date>2022-10-17T19:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: Splines</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Splines/m-p/839057#M41554</link>
      <description>Generally speaking, any time a parameter is shown with zero DF it is due to that design column being collinear with some combination of the others. This typically necessitates simplifying your model. In your case, maybe a lower degree or a different basis, etc. As always, check your log to see if there are any helpful messages.</description>
      <pubDate>Mon, 17 Oct 2022 19:53:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Splines/m-p/839057#M41554</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2022-10-17T19:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: Splines</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Splines/m-p/839059#M41555</link>
      <description>Strangly with R software i was able to get estimate with this cubic spline..</description>
      <pubDate>Mon, 17 Oct 2022 19:57:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Splines/m-p/839059#M41555</guid>
      <dc:creator>Romain69100</dc:creator>
      <dc:date>2022-10-17T19:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Splines</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Splines/m-p/839063#M41556</link>
      <description>You would have to verify that the design variables created by your R code are exactly the same and that the model definition is the same to be sure of that conclusion. There could easily be some difference in the respective details.</description>
      <pubDate>Mon, 17 Oct 2022 20:08:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Splines/m-p/839063#M41556</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2022-10-17T20:08:22Z</dc:date>
    </item>
  </channel>
</rss>

