<?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: Regression with restricted cubic splines in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Regression-with-restricted-cubic-splines/m-p/379604#M13112</link>
    <description>&lt;P&gt;Run a proc contents and verify the variable name and label. You need the name. If the name happens to have spaces, then wrap it in qutoes and add an N at the end.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;'SP 1'n&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/155971"&gt;@mmazariegos&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi all, &amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to&amp;nbsp;&lt;SPAN&gt;graph the spline functions, so I create a data set to store spline basis functions, and I got the data set that is below. The issue is when I want to call the spl1-spl4 variables (In the data set appear like spl&amp;nbsp;1 spl 2 spl 3 and spl 4). The program doesn't recognize any form to call them (nor spl&amp;nbsp;1 spl&amp;nbsp;2 spl&amp;nbsp;3 spl4 neither spl_1 spl_2 spl_3 spl_4). &amp;nbsp;Can anyone help me?&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&lt;BR /&gt;/* Create SplineBasis = data set that contains spline basis functions */
proc glmselect data=merged0811dersesdiet outdesign(addinputvars fullmodel)=SplineBasis;
   effect spl = spline(lactationbypar / naturalcubic basis=tpf(noint) knotmethod=percentiles(5));
   model weightchange2 = spl / selection=none;  
quit;


proc sgplot data=SplineBasis;
   series x=lactationbypar y=spl1;
   series x=lactationbypar y=spl2;
   series x=lactationbypar y=spl3;
   series x=lactationbypar y=spl4;
run;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/10561i3E63EB9EFF70258F/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="Screenshot 2017-07-26 17.04.47(2).png" title="Screenshot 2017-07-26 17.04.47(2).png" /&gt;&lt;/P&gt;
&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jul 2017 22:59:12 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-07-26T22:59:12Z</dc:date>
    <item>
      <title>Regression with restricted cubic splines</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Regression-with-restricted-cubic-splines/m-p/379589#M13111</link>
      <description>&lt;P&gt;Hi all, &amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to&amp;nbsp;&lt;SPAN&gt;graph the spline functions, so I create a data set to store spline basis functions, and I got the data set that is below. The issue is when I want to call the spl1-spl4 variables (In the data set appear like spl&amp;nbsp;1 spl 2 spl 3 and spl 4). The program doesn't recognize any form to call them (nor spl&amp;nbsp;1 spl&amp;nbsp;2 spl&amp;nbsp;3 spl4 neither spl_1 spl_2 spl_3 spl_4). &amp;nbsp;Can anyone help me?&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&lt;BR /&gt;/* Create SplineBasis = data set that contains spline basis functions */
proc glmselect data=merged0811dersesdiet outdesign(addinputvars fullmodel)=SplineBasis;
   effect spl = spline(lactationbypar / naturalcubic basis=tpf(noint) knotmethod=percentiles(5));
   model weightchange2 = spl / selection=none;  
quit;


proc sgplot data=SplineBasis;
   series x=lactationbypar y=spl1;
   series x=lactationbypar y=spl2;
   series x=lactationbypar y=spl3;
   series x=lactationbypar y=spl4;
run;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/10561i3E63EB9EFF70258F/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="Screenshot 2017-07-26 17.04.47(2).png" title="Screenshot 2017-07-26 17.04.47(2).png" /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2017 22:19:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Regression-with-restricted-cubic-splines/m-p/379589#M13111</guid>
      <dc:creator>mmazariegos</dc:creator>
      <dc:date>2017-07-26T22:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: Regression with restricted cubic splines</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Regression-with-restricted-cubic-splines/m-p/379604#M13112</link>
      <description>&lt;P&gt;Run a proc contents and verify the variable name and label. You need the name. If the name happens to have spaces, then wrap it in qutoes and add an N at the end.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;'SP 1'n&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/155971"&gt;@mmazariegos&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi all, &amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to&amp;nbsp;&lt;SPAN&gt;graph the spline functions, so I create a data set to store spline basis functions, and I got the data set that is below. The issue is when I want to call the spl1-spl4 variables (In the data set appear like spl&amp;nbsp;1 spl 2 spl 3 and spl 4). The program doesn't recognize any form to call them (nor spl&amp;nbsp;1 spl&amp;nbsp;2 spl&amp;nbsp;3 spl4 neither spl_1 spl_2 spl_3 spl_4). &amp;nbsp;Can anyone help me?&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&lt;BR /&gt;/* Create SplineBasis = data set that contains spline basis functions */
proc glmselect data=merged0811dersesdiet outdesign(addinputvars fullmodel)=SplineBasis;
   effect spl = spline(lactationbypar / naturalcubic basis=tpf(noint) knotmethod=percentiles(5));
   model weightchange2 = spl / selection=none;  
quit;


proc sgplot data=SplineBasis;
   series x=lactationbypar y=spl1;
   series x=lactationbypar y=spl2;
   series x=lactationbypar y=spl3;
   series x=lactationbypar y=spl4;
run;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/10561i3E63EB9EFF70258F/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="Screenshot 2017-07-26 17.04.47(2).png" title="Screenshot 2017-07-26 17.04.47(2).png" /&gt;&lt;/P&gt;
&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2017 22:59:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Regression-with-restricted-cubic-splines/m-p/379604#M13112</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-07-26T22:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Regression with restricted cubic splines</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Regression-with-restricted-cubic-splines/m-p/379621#M13113</link>
      <description>&lt;P&gt;Thank you very much Reeza, It works!&lt;/P&gt;&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token string"&gt;'spl 1'&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;n&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2017 03:44:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Regression-with-restricted-cubic-splines/m-p/379621#M13113</guid>
      <dc:creator>mmazariegos</dc:creator>
      <dc:date>2017-07-27T03:44:44Z</dc:date>
    </item>
  </channel>
</rss>

