<?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: SAS equivalent of PSPLINE in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-equivalent-of-PSPLINE/m-p/883120#M43682</link>
    <description>FYI I've moved your post to the stats forum. Check out PROC PHREG with the EFFECT &amp;amp; SPLINE options. &lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/Statistical-Procedures/How-do-I-plot-a-spline-in-a-Cox-Regression-model-PROC-PHREG/td-p/827279" target="_blank"&gt;https://communities.sas.com/t5/Statistical-Procedures/How-do-I-plot-a-spline-in-a-Cox-Regression-model-PROC-PHREG/td-p/827279&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I don't see a penalized option though so may need to use TPSPLINE first? &lt;BR /&gt;&lt;BR /&gt;Hopefully someone else has a better answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
    <pubDate>Fri, 30 Jun 2023 15:19:59 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2023-06-30T15:19:59Z</dc:date>
    <item>
      <title>SAS equivalent of PSPLINE</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-equivalent-of-PSPLINE/m-p/883117#M43681</link>
      <description>&lt;P&gt;I am given a code in R and have to translate to SAS.&amp;nbsp; Is there a SAS equivalent of the R-PSPLINE function in SAS?&amp;nbsp; I could not find any relevant resources online.&amp;nbsp; Basically I need to translate the following in SAS,&lt;/P&gt;&lt;P&gt;coxph(Surv(time,death)~sex+pspline(age,df=4),data=have)&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 15:09:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-equivalent-of-PSPLINE/m-p/883117#M43681</guid>
      <dc:creator>PamG</dc:creator>
      <dc:date>2023-06-30T15:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: SAS equivalent of PSPLINE</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-equivalent-of-PSPLINE/m-p/883120#M43682</link>
      <description>FYI I've moved your post to the stats forum. Check out PROC PHREG with the EFFECT &amp;amp; SPLINE options. &lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/Statistical-Procedures/How-do-I-plot-a-spline-in-a-Cox-Regression-model-PROC-PHREG/td-p/827279" target="_blank"&gt;https://communities.sas.com/t5/Statistical-Procedures/How-do-I-plot-a-spline-in-a-Cox-Regression-model-PROC-PHREG/td-p/827279&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I don't see a penalized option though so may need to use TPSPLINE first? &lt;BR /&gt;&lt;BR /&gt;Hopefully someone else has a better answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Fri, 30 Jun 2023 15:19:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-equivalent-of-PSPLINE/m-p/883120#M43682</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-06-30T15:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: SAS equivalent of PSPLINE</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-equivalent-of-PSPLINE/m-p/883139#M43683</link>
      <description>&lt;P&gt;Thanks Reeza.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;TPSPLINE will not work as I need to use this on survival data.&amp;nbsp; The only way around I see is to create the variables in data step and then use it in MODEL statement in PROC SURVIVAL.&amp;nbsp; I was hoping there is an easy way to do it.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 16:00:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-equivalent-of-PSPLINE/m-p/883139#M43683</guid>
      <dc:creator>PamG</dc:creator>
      <dc:date>2023-06-30T16:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: SAS equivalent of PSPLINE</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-equivalent-of-PSPLINE/m-p/883140#M43684</link>
      <description>&lt;P&gt;I meant PROC PHREG.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 16:01:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-equivalent-of-PSPLINE/m-p/883140#M43684</guid>
      <dc:creator>PamG</dc:creator>
      <dc:date>2023-06-30T16:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAS equivalent of PSPLINE</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-equivalent-of-PSPLINE/m-p/883145#M43685</link>
      <description>May not understand the problem correctly, but I was assuming using TPSPLINE to create the variables and then using them in PROC PHREG.</description>
      <pubDate>Fri, 30 Jun 2023 16:23:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-equivalent-of-PSPLINE/m-p/883145#M43685</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-06-30T16:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: SAS equivalent of PSPLINE</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-equivalent-of-PSPLINE/m-p/883146#M43686</link>
      <description>&lt;P&gt;How is what the R package does different than the Penalized B-splines of proc transreg?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/statcdc/14.2/statug/statug_transreg_details07.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/statcdc/14.2/statug/statug_transreg_details07.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 16:30:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-equivalent-of-PSPLINE/m-p/883146#M43686</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-06-30T16:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: SAS equivalent of PSPLINE</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-equivalent-of-PSPLINE/m-p/883190#M43692</link>
      <description>Maybe&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;could give you a hand .</description>
      <pubDate>Sat, 01 Jul 2023 09:31:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-equivalent-of-PSPLINE/m-p/883190#M43692</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-07-01T09:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: SAS equivalent of PSPLINE</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-equivalent-of-PSPLINE/m-p/883193#M43693</link>
      <description>&lt;P&gt;Upon reading further it seems like it is not implemented in SAS.&amp;nbsp; Not sure why given it is used so often.&lt;/P&gt;&lt;P&gt;&lt;A href="https://bmcmedresmethodol.biomedcentral.com/articles/10.1186/s12874-019-0666-3" target="_blank"&gt;https://bmcmedresmethodol.biomedcentral.com/articles/10.1186/s12874-019-0666-3&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Jul 2023 14:55:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-equivalent-of-PSPLINE/m-p/883193#M43693</guid>
      <dc:creator>PamG</dc:creator>
      <dc:date>2023-07-01T14:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: SAS equivalent of PSPLINE</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-equivalent-of-PSPLINE/m-p/883225#M43697</link>
      <description>&lt;P&gt;Also calling&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13758"&gt;@lvm&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15363"&gt;@SteveDenham&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jul 2023 09:20:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-equivalent-of-PSPLINE/m-p/883225#M43697</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-07-02T09:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAS equivalent of PSPLINE</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-equivalent-of-PSPLINE/m-p/883226#M43698</link>
      <description>There is a function MSPLINT() in data step, you refer to .&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/Graphics-Programming/Obtaining-values-resulting-from-smoothconnect/m-p/853806" target="_blank"&gt;https://communities.sas.com/t5/Graphics-Programming/Obtaining-values-resulting-from-smoothconnect/m-p/853806&lt;/A&gt;</description>
      <pubDate>Sun, 02 Jul 2023 09:31:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-equivalent-of-PSPLINE/m-p/883226#M43698</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-07-02T09:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: SAS equivalent of PSPLINE</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-equivalent-of-PSPLINE/m-p/883227#M43699</link>
      <description>&lt;A href="https://communities.sas.com/t5/Statistical-Procedures/CUBIC-SPLINE-YIELD-CURVES/m-p/845315" target="_blank"&gt;https://communities.sas.com/t5/Statistical-Procedures/CUBIC-SPLINE-YIELD-CURVES/m-p/845315&lt;/A&gt;</description>
      <pubDate>Sun, 02 Jul 2023 09:36:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-equivalent-of-PSPLINE/m-p/883227#M43699</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-07-02T09:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: SAS equivalent of PSPLINE</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SAS-equivalent-of-PSPLINE/m-p/883313#M43710</link>
      <description>&lt;P&gt;You should think about what the R model is trying to do. It is likely that author of the model chose penalized B splines simply to capture the potential that the survival rate has a potentially complicated relationship with the AGE variable. The specific form of the spline probably doesn't matter. In fact, if it is a good model, it should be robust to changes in the spline family. SAS supports B-splines, PB-splines, thin-plate splines, cubic splines, adaptive regression splines, and more, but in my experience, the form of the splines often has little impact on the predictive model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For an example of two models that illustrate my points, see &lt;A href="https://blogs.sas.com/content/iml/2016/03/23/nonparametric-regression-binary-response-sas.html" target="_self"&gt;"Nonparametric regression for binary response data in SAS.'&lt;/A&gt;&amp;nbsp;The example shows two completely different&amp;nbsp;(nonparametric) models that give roughly the same predictive model. If they didn't give similar predictions, then one or both models are probably not good.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I encourage you to use the EFFECT statement in PROC PHREG to construct a model that uses either the BSPLINE or TPF spline basis. Compare the models' predictions to the R model. In most applications, the goal is to find a good model, not to worry about technical differences between different spline models.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 10:48:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SAS-equivalent-of-PSPLINE/m-p/883313#M43710</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2023-07-03T10:48:49Z</dc:date>
    </item>
  </channel>
</rss>

