<?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: Restricted cubic splines in proportional hazard regression in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Restricted-cubic-splines-in-proportional-hazard-regression/m-p/435143#M279401</link>
    <description>&lt;P&gt;Hi Mrite,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am doing the same analysis as yours.&amp;nbsp;&lt;SPAN&gt;The hazard analysis shows that the association between Bicarb (&lt;/SPAN&gt;&lt;SPAN&gt;LBXSC3SI&lt;/SPAN&gt;&lt;SPAN&gt;) and survival is not linear. Thus, I want to plot restricted cubic splines in proportional hazard regression.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I used the following code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;PROC PHREG DATA = survey;&lt;BR /&gt;effect LBXSC3SIs = spline(LBXSC3SI / basis=tpf(noint) NATURALCUBIC details knotmethod=rangefractions(0.05 0.50 0.95) );&lt;BR /&gt;model years*dead (0) = LBXSC3SIs / rl;&lt;BR /&gt;run;&lt;BR /&gt;ods graphics on;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, I do not see any plot/graph in the SAS output. Did you find any solution for your code?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Feb 2018 01:47:44 GMT</pubDate>
    <dc:creator>asarode</dc:creator>
    <dc:date>2018-02-08T01:47:44Z</dc:date>
    <item>
      <title>Restricted cubic splines in proportional hazard regression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Restricted-cubic-splines-in-proportional-hazard-regression/m-p/407262#M279391</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC PHREG DATA=XXX;
 effect fibreS = spline(fibre / basis=tpf(noint) NATURALCUBIC details knotmethod=rangefractions(0.05 0.50 0.95) );
    model survival*Censor(0)=fibreS  / rl ;
    run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For a project, I want to perform restricted cubic splines since my prop. hazard analyses indicate the association between fibre and survival might not be linear.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I am not really used working with SAS and I got stuck making my syntax. I think the part I have is alright, however, I do not seem to get any graphical output figures. Could someone help me with the last part?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2017 13:37:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Restricted-cubic-splines-in-proportional-hazard-regression/m-p/407262#M279391</guid>
      <dc:creator>Mirte</dc:creator>
      <dc:date>2017-10-25T13:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Restricted cubic splines in proportional hazard regression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Restricted-cubic-splines-in-proportional-hazard-regression/m-p/407269#M279392</link>
      <description>&lt;P&gt;Did you enable ODS Graphics?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;ods graphics on;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It might or might not be enabled by default.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Do the graphs you want need to be requested by the PLOTS= option in the PROC statement or by specifying the EFFECTPLOT statement?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2017 13:46:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Restricted-cubic-splines-in-proportional-hazard-regression/m-p/407269#M279392</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2017-10-25T13:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: Restricted cubic splines in proportional hazard regression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Restricted-cubic-splines-in-proportional-hazard-regression/m-p/407272#M279393</link>
      <description>&lt;P&gt;Thanks for your reply. I have ods graphics&amp;nbsp;enabled.&amp;nbsp;&lt;BR /&gt;I thought the graphics needed to be requested with proc plot or proc sgplot, but as I am relatively new to sas&amp;nbsp;I'm sure whether this is right.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2017 13:51:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Restricted-cubic-splines-in-proportional-hazard-regression/m-p/407272#M279393</guid>
      <dc:creator>Mirte</dc:creator>
      <dc:date>2017-10-25T13:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: Restricted cubic splines in proportional hazard regression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Restricted-cubic-splines-in-proportional-hazard-regression/m-p/407276#M279394</link>
      <description>&lt;P&gt;PROC PLOT is ancient technology.&amp;nbsp; Don't use it.&amp;nbsp; PROC SGPLOT is enormously useful, but you might or might not need it. Many procedures automatically create some graphs relevant to the analysis and optionally create others.&amp;nbsp; Look at the PHREG doc.&amp;nbsp; For more about ODS Graphics and SAS/STAT procs, see&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/onlinedoc/stat/141/odsgraph.pdf&amp;nbsp;" target="_blank"&gt;http://support.sas.com/documentation/onlinedoc/stat/141/odsgraph.pdf&amp;nbsp;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2017 13:56:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Restricted-cubic-splines-in-proportional-hazard-regression/m-p/407276#M279394</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2017-10-25T13:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: Restricted cubic splines in proportional hazard regression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Restricted-cubic-splines-in-proportional-hazard-regression/m-p/407298#M279395</link>
      <description>&lt;P&gt;Thank you for the document. I do not see an option to plot RCS within this document. Do I need to perform another step to create graphs?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2017 14:30:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Restricted-cubic-splines-in-proportional-hazard-regression/m-p/407298#M279395</guid>
      <dc:creator>Mirte</dc:creator>
      <dc:date>2017-10-25T14:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: Restricted cubic splines in proportional hazard regression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Restricted-cubic-splines-in-proportional-hazard-regression/m-p/407357#M279396</link>
      <description>&lt;P&gt;Indeed I do not find "RCS" in the PROC PHREG documentation, so unless it has some other name, you might have to use PROC SGPLOT.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2017 16:33:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Restricted-cubic-splines-in-proportional-hazard-regression/m-p/407357#M279396</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2017-10-25T16:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Restricted cubic splines in proportional hazard regression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Restricted-cubic-splines-in-proportional-hazard-regression/m-p/407358#M279397</link>
      <description>&lt;P&gt;Just dawned on me.&amp;nbsp; By RCS, do you mean restricted cubic splines?&amp;nbsp; I really don't know what plot you are looking for.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2017 16:34:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Restricted-cubic-splines-in-proportional-hazard-regression/m-p/407358#M279397</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2017-10-25T16:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Restricted cubic splines in proportional hazard regression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Restricted-cubic-splines-in-proportional-hazard-regression/m-p/407363#M279398</link>
      <description>&lt;P&gt;I have a picture added to my reply. Yes, I mean restricted cubic splines. I want a plot with the hazard ratio on the y-axis and fiber intake on the x-axis. If I run my syntax, I get some output in tables. The same kind of output you would get if you would run a proc phreg without spline specified in the effects statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="spline.png" style="width: 269px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16219i28C386EDAA2879DA/image-dimensions/269x200?v=v2" width="269" height="200" role="button" title="spline.png" alt="spline.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2017 16:43:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Restricted-cubic-splines-in-proportional-hazard-regression/m-p/407363#M279398</guid>
      <dc:creator>Mirte</dc:creator>
      <dc:date>2017-10-25T16:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Restricted cubic splines in proportional hazard regression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Restricted-cubic-splines-in-proportional-hazard-regression/m-p/407373#M279399</link>
      <description>&lt;P&gt;Sorry I can't be more help. Now that you have shown what you want, I hope someone else can help you.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2017 17:14:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Restricted-cubic-splines-in-proportional-hazard-regression/m-p/407373#M279399</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2017-10-25T17:14:41Z</dc:date>
    </item>
    <item>
      <title>Re: Restricted cubic splines in proportional hazard regression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Restricted-cubic-splines-in-proportional-hazard-regression/m-p/407381#M279400</link>
      <description>&lt;P&gt;No problem. I appreciate you taking the time!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2017 17:36:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Restricted-cubic-splines-in-proportional-hazard-regression/m-p/407381#M279400</guid>
      <dc:creator>Mirte</dc:creator>
      <dc:date>2017-10-25T17:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: Restricted cubic splines in proportional hazard regression</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Restricted-cubic-splines-in-proportional-hazard-regression/m-p/435143#M279401</link>
      <description>&lt;P&gt;Hi Mrite,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am doing the same analysis as yours.&amp;nbsp;&lt;SPAN&gt;The hazard analysis shows that the association between Bicarb (&lt;/SPAN&gt;&lt;SPAN&gt;LBXSC3SI&lt;/SPAN&gt;&lt;SPAN&gt;) and survival is not linear. Thus, I want to plot restricted cubic splines in proportional hazard regression.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I used the following code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;PROC PHREG DATA = survey;&lt;BR /&gt;effect LBXSC3SIs = spline(LBXSC3SI / basis=tpf(noint) NATURALCUBIC details knotmethod=rangefractions(0.05 0.50 0.95) );&lt;BR /&gt;model years*dead (0) = LBXSC3SIs / rl;&lt;BR /&gt;run;&lt;BR /&gt;ods graphics on;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, I do not see any plot/graph in the SAS output. Did you find any solution for your code?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2018 01:47:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Restricted-cubic-splines-in-proportional-hazard-regression/m-p/435143#M279401</guid>
      <dc:creator>asarode</dc:creator>
      <dc:date>2018-02-08T01:47:44Z</dc:date>
    </item>
  </channel>
</rss>

