<?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: B spline in GLM in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/B-spline-in-GLM/m-p/352775#M18479</link>
    <description>&lt;P&gt;Thanks for your reply, the idea behind joint estimation of spline was to smooth the parameter and also carry-over the impact to estimation of other parameters.&lt;/P&gt;&lt;P&gt;Is it possible to mannually select the position of knots and the shape of curve or would I have to leave it to SAS to give the best fit. What if I wanted to give my own relationship derived from elsewhere.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Apr 2017 10:08:08 GMT</pubDate>
    <dc:creator>SouravRoy</dc:creator>
    <dc:date>2017-04-24T10:08:08Z</dc:date>
    <item>
      <title>B spline in GLM</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/B-spline-in-GLM/m-p/352744#M18477</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How could one jointly estimate GLM parameter along with fitting B spline to the parameters of factor levels. I am using PROC HPGENSELECT&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 08:02:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/B-spline-in-GLM/m-p/352744#M18477</guid>
      <dc:creator>SouravRoy</dc:creator>
      <dc:date>2017-04-24T08:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: B spline in GLM</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/B-spline-in-GLM/m-p/352770#M18478</link>
      <description>&lt;P&gt;You can use PROC GLMSELECT for these tasks. &amp;nbsp;I'm not sure what you mean by "jointly estimate." You cannot simultaneously estimate two different models; you would need to run a procedure twice. However, maybe you meant "main effects plus spline terms." If so, that is easily done.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To fit the GLM model, use the usual syntax. If yu don't want variable selection, use the SELECTION=NONE option on the MODEL statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To fit the B splines, &lt;A href="http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_introcom_sect020.htm" target="_self"&gt;use the EFFECT statement and the SPLINE option&lt;/A&gt; with BASIS=BSPLINE. An example is available in the article &lt;A href="http://blogs.sas.com/content/iml/2017/04/19/restricted-cubic-splines-sas.html" target="_self"&gt;"Regression with restricted cubic splines in SAS"&lt;/A&gt;. The article uses a different spline basis, but contains the main ideas. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have questions, I suggest&amp;nbsp;you post&amp;nbsp;them using the example data in the blog post.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 09:47:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/B-spline-in-GLM/m-p/352770#M18478</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-04-24T09:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: B spline in GLM</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/B-spline-in-GLM/m-p/352775#M18479</link>
      <description>&lt;P&gt;Thanks for your reply, the idea behind joint estimation of spline was to smooth the parameter and also carry-over the impact to estimation of other parameters.&lt;/P&gt;&lt;P&gt;Is it possible to mannually select the position of knots and the shape of curve or would I have to leave it to SAS to give the best fit. What if I wanted to give my own relationship derived from elsewhere.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 10:08:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/B-spline-in-GLM/m-p/352775#M18479</guid>
      <dc:creator>SouravRoy</dc:creator>
      <dc:date>2017-04-24T10:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: B spline in GLM</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/B-spline-in-GLM/m-p/352777#M18480</link>
      <description>&lt;P&gt;Yes, the blog post (and documentation) shows how to&amp;nbsp;set the location of the knots. Yes, you can generate the spline basis functions (also in the article!) and then score the model using coefficients that you specify. You can use PROC SCORE or the DATA step to score the model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do not know what you mean by "smooth the parameter and also carry-over the impact to estimation of other parameters." &amp;nbsp;I suggest you read the article, play with the procedure, and then post data, code, and desired output. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 10:22:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/B-spline-in-GLM/m-p/352777#M18480</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-04-24T10:22:06Z</dc:date>
    </item>
  </channel>
</rss>

