<?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: Capping predictions using SAS/STAT prodecures in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Capping-predictions-using-SAS-STAT-prodecures/m-p/332665#M17559</link>
    <description>&lt;P&gt;The general technique&amp;nbsp;is to choose an appropriate model for the response. For example, if the response is a nonnegative count, use Poisson regression. If&amp;nbsp;you are using a linear model such as OLS, then the model will produce negative values when the data&amp;nbsp;call for it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For&amp;nbsp;a continuous response, you can use a LOG link function to prevent negative predictions, but realize that you are changing the model.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Feb 2017 15:39:56 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2017-02-14T15:39:56Z</dc:date>
    <item>
      <title>Capping predictions using SAS/STAT prodecures</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Capping-predictions-using-SAS-STAT-prodecures/m-p/332641#M17557</link>
      <description>&lt;P&gt;Is there a way in SAS regression procedures to cap lower bound of predicted values.&lt;/P&gt;&lt;P&gt;I would like to know if there is a way or option that can be used to adjust that in the procedure itself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a scenario in which predicted negative values would practically never happen and I want to adjust that in regression itself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if anyone knows a way to handle that.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 15:16:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Capping-predictions-using-SAS-STAT-prodecures/m-p/332641#M17557</guid>
      <dc:creator>ArseneWenger</dc:creator>
      <dc:date>2017-02-14T15:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: Capping predictions using SAS/STAT prodecures</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Capping-predictions-using-SAS-STAT-prodecures/m-p/332659#M17558</link>
      <description>&lt;P&gt;You might mention which specific regression procedures you are using. It won't help you much if someone comes back with a technique that only works in one or two procedures and those are not the regressions you are using.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 15:33:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Capping-predictions-using-SAS-STAT-prodecures/m-p/332659#M17558</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-02-14T15:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: Capping predictions using SAS/STAT prodecures</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Capping-predictions-using-SAS-STAT-prodecures/m-p/332665#M17559</link>
      <description>&lt;P&gt;The general technique&amp;nbsp;is to choose an appropriate model for the response. For example, if the response is a nonnegative count, use Poisson regression. If&amp;nbsp;you are using a linear model such as OLS, then the model will produce negative values when the data&amp;nbsp;call for it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For&amp;nbsp;a continuous response, you can use a LOG link function to prevent negative predictions, but realize that you are changing the model.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 15:39:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Capping-predictions-using-SAS-STAT-prodecures/m-p/332665#M17559</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-02-14T15:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Capping predictions using SAS/STAT prodecures</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Capping-predictions-using-SAS-STAT-prodecures/m-p/332673#M17560</link>
      <description>&lt;P&gt;I am using Proc Reg right now but couldn't find any option to cap. Are there any other regression procedure that does that?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 15:54:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Capping-predictions-using-SAS-STAT-prodecures/m-p/332673#M17560</guid>
      <dc:creator>ArseneWenger</dc:creator>
      <dc:date>2017-02-14T15:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: Capping predictions using SAS/STAT prodecures</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Capping-predictions-using-SAS-STAT-prodecures/m-p/332749#M17567</link>
      <description>&lt;P&gt;To answer your question: no, I do not believe that SAS supports any option that truncates the predicted values.&lt;/P&gt;
&lt;P&gt;Truncating predictions like that would not fit an OLS model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think the right thing to do is choose a model that makes sense for your data. Can you describe your data and the problem that you are trying to solve?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 18:15:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Capping-predictions-using-SAS-STAT-prodecures/m-p/332749#M17567</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-02-14T18:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: Capping predictions using SAS/STAT prodecures</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Capping-predictions-using-SAS-STAT-prodecures/m-p/332758#M17568</link>
      <description>&lt;P&gt;Generally I would output the predicted values and then post process&amp;nbsp;the results&amp;nbsp;in a data step as needed. I do this with confidence limit predictions on a regular basis. My data is proportion and one of the limits sometimes exceeds the [0%,100%] range that makes sense. Since I do this fairly frequently I have a custom format to force values less than 0 to display as 0 and greater than 100 as 100.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With a format I could even include an explanatory symbol to indicate a truncated result to let readers know.&lt;/P&gt;
&lt;P&gt;If the value needs to be used in further calculations than the data step boundary would be see with something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if pred&amp;lt;0 then pred=0;&lt;/P&gt;
&lt;P&gt;else if pred&amp;gt;(some maximum value) then pred=(maximum value).&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 18:41:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Capping-predictions-using-SAS-STAT-prodecures/m-p/332758#M17568</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-02-14T18:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Capping predictions using SAS/STAT prodecures</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Capping-predictions-using-SAS-STAT-prodecures/m-p/332778#M17571</link>
      <description>&lt;P&gt;IMHO, there&amp;nbsp;is a big difference between adjusting confidence limits (which are probably based derived from an asymptotic&amp;nbsp;normal theory) and adjusting predicted values. If you adjust the predicted values, the model is no longer linear; it becomes piecewise linear (or worse?)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't want to move to a generalized linear model, at least consider&amp;nbsp;whether you can use the NOINT&amp;nbsp;option or RESTRICT statement to restrict the intercept term.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Feb 2017 20:10:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Capping-predictions-using-SAS-STAT-prodecures/m-p/332778#M17571</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-02-14T20:10:47Z</dc:date>
    </item>
  </channel>
</rss>

