<?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: How can I add confidence limits to a fit plot using proc quantreg in SAS 9.4? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-add-confidence-limits-to-a-fit-plot-using-proc/m-p/282949#M14907</link>
    <description>&lt;P&gt;Thanks for the help!&lt;/P&gt;</description>
    <pubDate>Fri, 08 Jul 2016 13:18:40 GMT</pubDate>
    <dc:creator>DaLack</dc:creator>
    <dc:date>2016-07-08T13:18:40Z</dc:date>
    <item>
      <title>How can I add confidence limits to a fit plot using proc quantreg in SAS 9.4?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-add-confidence-limits-to-a-fit-plot-using-proc/m-p/282639#M14895</link>
      <description>&lt;P&gt;I am using a nonparametric quantile regression with quadratic B-splines. Now I want to add the confidence bands to the fit plot. But I couldn't find an implementation in SAS 9.4. I have already checked the user's guide but got only a solution in SAS 9.2. Therefore I tried the following:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics on;
proc quantreg data=data1 algorithm=simplex ci=resampling;
effect Var2=spline(Var1 / Basis=Bspline Details degree=2 knotmethod=list(14));
model Var3 = Var2 / plot=fitplot(showlimits) quantile= 0.05 0.5 0.95 seed=1268;
output out=data2 pred=p / columnwise;
run;
ods graphics off;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;But it doesn't seem to work in SAS 9.4. I always get the fit plot but without any confidence limits. I did the same without a spline effect but again no additional bands.&lt;BR /&gt;&lt;BR /&gt;Is there another way in order to display the confidence intervals in SAS 9.4?&lt;BR /&gt;&lt;BR /&gt;Many thanks for the answer.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2016 09:07:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-add-confidence-limits-to-a-fit-plot-using-proc/m-p/282639#M14895</guid>
      <dc:creator>DaLack</dc:creator>
      <dc:date>2016-07-07T09:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: How can I add confidence limits to a fit plot using proc quantreg in SAS 9.4?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-add-confidence-limits-to-a-fit-plot-using-proc/m-p/282676#M14896</link>
      <description>&lt;P&gt;Have you checked the SAS log to make sure that you are not getting an error somewhere? This example works for me at SAS 9.4m3:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc quantreg data=sashelp.cars algorithm=simplex ci=resampling;
effect Var2=spline(weight / Basis=Bspline Details degree=2 knotmethod=list(3577));
model mpg_city = Var2 / plot=fitplot(showlimits) quantile= 0.05 0.5 0.95 seed=1268;
output out=data2 pred=p / columnwise;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With your code you are specifying one internal knot at Var1=8.&amp;nbsp; Depending on the range/distribution of your data, this might cause a problem. You could also try KNOTMETHOD=EQUAL(1) or KNOTMETHOD=EQUAL(2) to get equally space internal knots within the range of Var1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you can run the Sashelp.Cars example, the problem must be specific to your data.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2016 13:22:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-add-confidence-limits-to-a-fit-plot-using-proc/m-p/282676#M14896</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-07-07T13:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: How can I add confidence limits to a fit plot using proc quantreg in SAS 9.4?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-add-confidence-limits-to-a-fit-plot-using-proc/m-p/282886#M14901</link>
      <description>&lt;P&gt;I have found the error. The problem is, that my data set contains around 7k observations. Therefore I have to add "plot(maxpoints=7000)" to the proc statement in order to get fit plots. And this results in missing confidence bands. I have already tried to increase the number but the intervals are still not visible.&lt;BR /&gt;&lt;BR /&gt;Is there a solution to this problem?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2016 09:17:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-add-confidence-limits-to-a-fit-plot-using-proc/m-p/282886#M14901</guid>
      <dc:creator>DaLack</dc:creator>
      <dc:date>2016-07-08T09:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: How can I add confidence limits to a fit plot using proc quantreg in SAS 9.4?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-add-confidence-limits-to-a-fit-plot-using-proc/m-p/282937#M14905</link>
      <description>&lt;P&gt;As it says in &lt;A href="http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_qreg_syntax07.htm" target="_self"&gt;the documentation for the QUANTREG procedure&lt;/A&gt;:&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;You can use the PLOTS= option in the MODEL statement&amp;nbsp;... to request the quantile process plot in addition to all that plots that you request in the &lt;A href="http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/statug_qreg_syntax01.htm#statug.qreg.quantregfprocplotoptions" target="_blank"&gt;PLOT=&lt;/A&gt; option in the PROC QUANTREG statement. ...&lt;FONT color="#ff0000"&gt;The &lt;SPAN class=" AAargument"&gt;plot-option&lt;/SPAN&gt; in the PROC QUANTREG statement overwrites the &lt;SPAN class=" AAargument"&gt;plot-option&lt;/SPAN&gt; in the MODEL statement .&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you specified the PLOT= option on the MODEL statement, it overrode the MAXPOINTS= option that you specified on the PROC QUANTREG statement. To get what you want, do this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc quantreg data=MyData plot(maxpoints=NONE)=fitplot(showlimits) ...;
effect Var2=spline(...);
model Y = Var2 / quantile= 0.05 0.5 0.95 seed=1268;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;With 7k points, the confidence bands are likely to be very thin.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2016 12:43:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-add-confidence-limits-to-a-fit-plot-using-proc/m-p/282937#M14905</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-07-08T12:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: How can I add confidence limits to a fit plot using proc quantreg in SAS 9.4?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-add-confidence-limits-to-a-fit-plot-using-proc/m-p/282949#M14907</link>
      <description>&lt;P&gt;Thanks for the help!&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2016 13:18:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-can-I-add-confidence-limits-to-a-fit-plot-using-proc/m-p/282949#M14907</guid>
      <dc:creator>DaLack</dc:creator>
      <dc:date>2016-07-08T13:18:40Z</dc:date>
    </item>
  </channel>
</rss>

