<?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: Why i had 2 p-value in nonlinearity test of restricted cubic spline in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Why-i-had-2-p-value-in-nonlinearity-test-of-restricted-cubic/m-p/949795#M42678</link>
    <description>&lt;P&gt;If you are getting 2 estimates, it means that you are using 3 knots for the splines. The procedure probably outputs a "SplineKnots" table, which will show the 3 values of the continuous variable at which the knots are placed. For example, see this example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glmselect data=sashelp.cars;
   effect CONUTs = spline(Weight / details naturalcubic basis=tpf(noint)
             knotmethod=equal(3)); /* &amp;lt;== NOTE: 3 equally spaced knots */
   model mpg_city = CONUTs / selection=none;       /* fit model by using spline effects */
   ods select SplineKnots ParameterEstimates;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The three spline components are the Intercept, CONUTs_1, and CONUTS_2, The p-values indicate whether each component in the model is a significant predictor of the response variable. For more about the spline components (and how to visualize them), see&amp;nbsp;&lt;A href="https://blogs.sas.com/content/iml/2019/10/16/visualize-regression-splines.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2019/10/16/visualize-regression-splines.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 03 Nov 2024 10:25:18 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2024-11-03T10:25:18Z</dc:date>
    <item>
      <title>Why i had 2 p-value in nonlinearity test of restricted cubic spline</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Why-i-had-2-p-value-in-nonlinearity-test-of-restricted-cubic/m-p/949717#M42676</link>
      <description>&lt;P&gt;Dear all:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used restricted cubic spline (RCS) to plot the mortality hazard ratio of body mass index. The hazard ratio was adjusted by age, viral type, SOFA score, and bicarbionate.&lt;/P&gt;&lt;P&gt;However, there were two results of P-value for&amp;nbsp;nonlinearity (Counts1 = 0.2264 and Counts2 = 0.6636).&lt;/P&gt;&lt;P&gt;Which one should i use?&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="截圖 2024-11-01 下午10.39.21.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/101934iDF5DBDE4AF5DE483/image-size/large?v=v2&amp;amp;px=999" role="button" title="截圖 2024-11-01 下午10.39.21.png" alt="截圖 2024-11-01 下午10.39.21.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I used BMI=18.5 as the single knot. The following figure was the RCS plot.&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="截圖 2024-11-01 下午10.46.22.png" style="width: 940px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/101935iA9CDCD0F2061DFAA/image-size/large?v=v2&amp;amp;px=999" role="button" title="截圖 2024-11-01 下午10.46.22.png" alt="截圖 2024-11-01 下午10.46.22.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2024 14:44:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Why-i-had-2-p-value-in-nonlinearity-test-of-restricted-cubic/m-p/949717#M42676</guid>
      <dc:creator>isozealot</dc:creator>
      <dc:date>2024-11-01T14:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: Why i had 2 p-value in nonlinearity test of restricted cubic spline</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Why-i-had-2-p-value-in-nonlinearity-test-of-restricted-cubic/m-p/949720#M42677</link>
      <description>&lt;P&gt;Please include the code you submitted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That way we have a chance of seeing all of the options that could have affected the creation of the output.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2024 14:54:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Why-i-had-2-p-value-in-nonlinearity-test-of-restricted-cubic/m-p/949720#M42677</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-11-01T14:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Why i had 2 p-value in nonlinearity test of restricted cubic spline</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Why-i-had-2-p-value-in-nonlinearity-test-of-restricted-cubic/m-p/949795#M42678</link>
      <description>&lt;P&gt;If you are getting 2 estimates, it means that you are using 3 knots for the splines. The procedure probably outputs a "SplineKnots" table, which will show the 3 values of the continuous variable at which the knots are placed. For example, see this example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc glmselect data=sashelp.cars;
   effect CONUTs = spline(Weight / details naturalcubic basis=tpf(noint)
             knotmethod=equal(3)); /* &amp;lt;== NOTE: 3 equally spaced knots */
   model mpg_city = CONUTs / selection=none;       /* fit model by using spline effects */
   ods select SplineKnots ParameterEstimates;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The three spline components are the Intercept, CONUTs_1, and CONUTS_2, The p-values indicate whether each component in the model is a significant predictor of the response variable. For more about the spline components (and how to visualize them), see&amp;nbsp;&lt;A href="https://blogs.sas.com/content/iml/2019/10/16/visualize-regression-splines.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2019/10/16/visualize-regression-splines.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Nov 2024 10:25:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Why-i-had-2-p-value-in-nonlinearity-test-of-restricted-cubic/m-p/949795#M42678</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2024-11-03T10:25:18Z</dc:date>
    </item>
  </channel>
</rss>

