<?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: PROC QUANTREG in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-QUANTREG/m-p/560122#M27728</link>
    <description>&lt;P&gt;Would it make sense to put a floor (to 0) on observed Ys and then build a model on log(Y) as you suggested?&lt;/P&gt;</description>
    <pubDate>Mon, 20 May 2019 13:20:06 GMT</pubDate>
    <dc:creator>FB1</dc:creator>
    <dc:date>2019-05-20T13:20:06Z</dc:date>
    <item>
      <title>PROC QUANTREG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-QUANTREG/m-p/559580#M27713</link>
      <description>&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;is it possible to add boundaries in proc quantreg?&lt;/P&gt;&lt;P&gt;Here's my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc quantreg 	data=d
			algorithm=simplex outest=out ci=sparsity plots=none;
			model y= x1 x2 x3 / quantile=&amp;amp;q.;
			output out=out p=q res=r;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I would like to add the following condiiton on y:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;y&amp;gt;=0&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 08:13:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-QUANTREG/m-p/559580#M27713</guid>
      <dc:creator>FB1</dc:creator>
      <dc:date>2019-05-17T08:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: PROC QUANTREG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-QUANTREG/m-p/559652#M27714</link>
      <description>&lt;P&gt;Can you clarify? Do you want&lt;/P&gt;
&lt;P&gt;1. To only build the model for observations that have y &amp;gt;= 0.&amp;nbsp; If so, insert&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; WHERE y&amp;gt;=0;&lt;/P&gt;
&lt;P&gt;before the MODEL statement.&lt;/P&gt;
&lt;P&gt;2. To build a model that predicts only positive values. If so, you need to build a model that reflects that restriction. To do this correctly requires knowledge of the data and errors.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, to expand on (2), if all the observed Ys are positive, you can define LogY = log(Y) and then model LogY. The predictions of Y are obtained from the predictions of LogY by exponentiating, Therefore the predictions are always positive. If you are interested in learning more, read &lt;A href="https://blogs.sas.com/content/iml/2015/09/16/plot-distrib-exp.html" target="_self"&gt;"Error distributions and exponential regression models."&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 13:01:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-QUANTREG/m-p/559652#M27714</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-05-17T13:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: PROC QUANTREG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-QUANTREG/m-p/559664#M27723</link>
      <description>&lt;P&gt;Thanks for you answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It's option 2., I need to build a model that predicts only positive values, but my Ys observed are both positive and negative.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I will absolutely read the article you suggest.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In the meanwhile, thanks again.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 14:16:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-QUANTREG/m-p/559664#M27723</guid>
      <dc:creator>FB1</dc:creator>
      <dc:date>2019-05-17T14:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: PROC QUANTREG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-QUANTREG/m-p/560122#M27728</link>
      <description>&lt;P&gt;Would it make sense to put a floor (to 0) on observed Ys and then build a model on log(Y) as you suggested?&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 13:20:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-QUANTREG/m-p/560122#M27728</guid>
      <dc:creator>FB1</dc:creator>
      <dc:date>2019-05-20T13:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: PROC QUANTREG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-QUANTREG/m-p/560123#M27729</link>
      <description>&lt;P&gt;No, that transformation won't work because log(y) is not defined for y &amp;lt;= 0.&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 13:22:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-QUANTREG/m-p/560123#M27729</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-05-20T13:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: PROC QUANTREG</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-QUANTREG/m-p/560157#M27730</link>
      <description>&lt;P&gt;Sorry, I meant 0+&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 14:19:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-QUANTREG/m-p/560157#M27730</guid>
      <dc:creator>FB1</dc:creator>
      <dc:date>2019-05-20T14:19:36Z</dc:date>
    </item>
  </channel>
</rss>

