<?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 How to specify &amp;quot;naturalcubic&amp;quot; in effect command in quantreg procedure in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-specify-quot-naturalcubic-quot-in-effect-command-in/m-p/30063#M1234</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume you are typing this into the program window, since I don't think there is a quantile regression task in EG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is not what version of EG you are using, but the version of SAS. The EFFECT statement was added to QUANTEREG in 9.22.&lt;/P&gt;&lt;P&gt;You have to have correctly specified knots, which depend on the data values (the AGE values in your example).&amp;nbsp; Delete the KNOTMETHOD= option to see if the problem is the specification of knots, or whether the EFFECT statement is invalid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For earlier versions of SAS, try using the EFFECT statement in PROC GLMSELECT and use the OUTDESIGN= option to output the dummy variables to a data set. For an example, see the top of p. 5 in this paper: &lt;A href="http://support.sas.com/resources/papers/proceedings10/329-2010.pdf"&gt;http://support.sas.com/resources/papers/proceedings10/329-2010.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Oct 2011 14:04:51 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2011-10-21T14:04:51Z</dc:date>
    <item>
      <title>How to specify "naturalcubic" in effect command in quantreg procedure</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-specify-quot-naturalcubic-quot-in-effect-command-in/m-p/30062#M1233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In SAS EG 4.3, I'd like to run proc quantreg with effect command specified as natural cubic splines, something like&lt;/P&gt;&lt;P&gt;proc quantreg data = one;&lt;/P&gt;&lt;P&gt;effect spl_age = spline(age / naturalcubic knotmethod = list(3 6 9 11 14));&lt;/P&gt;&lt;P&gt;model outcome = spl_age;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I kept on encountering error message telling me error with using "naturalcubic". What is the correct way to use natural cubic splines in effect command? Is this a SAS9.3 new feature? How do we do this if I am in older version SAS?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2011 00:27:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-specify-quot-naturalcubic-quot-in-effect-command-in/m-p/30062#M1233</guid>
      <dc:creator>emmie</dc:creator>
      <dc:date>2011-10-18T00:27:44Z</dc:date>
    </item>
    <item>
      <title>How to specify "naturalcubic" in effect command in quantreg procedure</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-specify-quot-naturalcubic-quot-in-effect-command-in/m-p/30063#M1234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I assume you are typing this into the program window, since I don't think there is a quantile regression task in EG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is not what version of EG you are using, but the version of SAS. The EFFECT statement was added to QUANTEREG in 9.22.&lt;/P&gt;&lt;P&gt;You have to have correctly specified knots, which depend on the data values (the AGE values in your example).&amp;nbsp; Delete the KNOTMETHOD= option to see if the problem is the specification of knots, or whether the EFFECT statement is invalid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For earlier versions of SAS, try using the EFFECT statement in PROC GLMSELECT and use the OUTDESIGN= option to output the dummy variables to a data set. For an example, see the top of p. 5 in this paper: &lt;A href="http://support.sas.com/resources/papers/proceedings10/329-2010.pdf"&gt;http://support.sas.com/resources/papers/proceedings10/329-2010.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2011 14:04:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-specify-quot-naturalcubic-quot-in-effect-command-in/m-p/30063#M1234</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2011-10-21T14:04:51Z</dc:date>
    </item>
  </channel>
</rss>

