<?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: Force a regression coefficient to be negative in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Force-a-regression-coefficient-to-be-negative/m-p/218224#M11815</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would definitely not force the coefficient to be negative in the overall estimation. Would give meaningless results. However, you can determine the influence of each observation on the estimated parameters (and on tyhe estimated fit). In PROC REG, use:&lt;/P&gt;&lt;P&gt;model y = x / &lt;STRONG&gt;influence&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;THis will will give all kinds of information for each observation, including cook's distance (change in normalized coefficients with the deletion of each individual). You can read about this in the REG chapter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Apr 2015 18:53:14 GMT</pubDate>
    <dc:creator>lvm</dc:creator>
    <dc:date>2015-04-09T18:53:14Z</dc:date>
    <item>
      <title>Force a regression coefficient to be negative</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Force-a-regression-coefficient-to-be-negative/m-p/218218#M11809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a regression problem using variable X to predict Y. That is, Y = c + A*X + error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the regression problem, we need that A must be negative to make the regression result meaningful.&amp;nbsp; However, due to existence of unknown noises or unknown factors, our regression sometimes does have a positive results of coefficient A. I am struggling to find out a statistical way to force coefficient A being negative.&amp;nbsp; Do you know any way to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One way I am thinking is that: If the results of A is positive, I remove one point that is most influential to cause A being positive.&amp;nbsp; After removing the point, then do regression again.&amp;nbsp; By doing this iteratively, after removing a couple of data points, the result of A can be negative.&amp;nbsp; Is there any statistical method in research literature supporting my way to remove a couple of data points to force regression coefficient A within a range we prefer (such as negative)?&amp;nbsp; Appreciate your answer. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 14:09:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Force-a-regression-coefficient-to-be-negative/m-p/218218#M11809</guid>
      <dc:creator>wutao9999</dc:creator>
      <dc:date>2015-04-09T14:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: Force a regression coefficient to be negative</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Force-a-regression-coefficient-to-be-negative/m-p/218219#M11810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are mathematical techniques which can impose such a restriction on a linear regression, and you can even read about some of them under “linear least squares” at Wikipedia. You'd have to program this in PROC IML or search to see if someone else has done this already.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your proposed method could also be programmed either via PROC IML or via a macro loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am somewhat skeptical about the validity of either approach, one of the reasons we use data to estimate things is to see if the data is consistent with the underlying theory, and if you get a positive slope, that is telling you something! If it were me, I'd see if there were substantive reasons to remove certain pieces of data (&lt;EM&gt;e.g.&lt;/EM&gt; recording errors, or the process by which the data was generated was compromised, &lt;EM&gt;etc&lt;/EM&gt;.) and if there were no obvious reasons to remove certain pieces of data, then you've got a real problem ... the data does not support the theory. In that case, I think its pointless to force the slope to be negative, I would not feel that there is any validity to such an estimate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 15:33:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Force-a-regression-coefficient-to-be-negative/m-p/218219#M11810</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2015-04-09T15:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: Force a regression coefficient to be negative</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Force-a-regression-coefficient-to-be-negative/m-p/218220#M11811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with &lt;A __default_attr="9481" __jive_macro_name="user" class="jive_macro jive_macro_user" href="https://communities.sas.com/"&gt;&lt;/A&gt; that it may not be wise to make such a bound on the parameters. Also, in case some of estimates happens to be on the bound the p-values will not be valid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nevertheless, if you still insist to do this, it is easy to put restrictions on the parameters in nlmixed, which can handle most regression models. I found this example in the SAS-documentation where they use a bound on the parameters: &lt;A class="active_link" href="http://support.sas.com/documentation/cdl/en/statug/67523/HTML/default/viewer.htm#statug_nlmixed_examples03.htm"&gt;http://support.sas.com/documentation/cdl/en/statug/67523/HTML/default/viewer.htm#statug_nlmixed_examples03.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jacob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 16:12:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Force-a-regression-coefficient-to-be-negative/m-p/218220#M11811</guid>
      <dc:creator>JacobSimonsen</dc:creator>
      <dc:date>2015-04-09T16:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Force a regression coefficient to be negative</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Force-a-regression-coefficient-to-be-negative/m-p/218221#M11812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can Least square linear regression be used in nlmixed? Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 17:35:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Force-a-regression-coefficient-to-be-negative/m-p/218221#M11812</guid>
      <dc:creator>wutao9999</dc:creator>
      <dc:date>2015-04-09T17:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Force a regression coefficient to be negative</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Force-a-regression-coefficient-to-be-negative/m-p/218222#M11813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as I know, NLMIXED produced Maximum Likelihood or Restricted Maximum Likelihood estimate and not Ordinary Least Squares estimates. There may be some situations where the OLS and ML or REML estimates are guaranteed to be the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 17:40:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Force-a-regression-coefficient-to-be-negative/m-p/218222#M11813</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2015-04-09T17:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: Force a regression coefficient to be negative</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Force-a-regression-coefficient-to-be-negative/m-p/218223#M11814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi PaigeMiller,&lt;/P&gt;&lt;P&gt;If I remember right, if you consider your data to be normal distributed, then the maximum likelihood will also be the estimate obtained by ordinary least squares. Therefore I think also that nlmixed can solve the problem.&lt;/P&gt;&lt;P&gt;Good luck. Jacob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 17:44:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Force-a-regression-coefficient-to-be-negative/m-p/218223#M11814</guid>
      <dc:creator>JacobSimonsen</dc:creator>
      <dc:date>2015-04-09T17:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: Force a regression coefficient to be negative</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Force-a-regression-coefficient-to-be-negative/m-p/218224#M11815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would definitely not force the coefficient to be negative in the overall estimation. Would give meaningless results. However, you can determine the influence of each observation on the estimated parameters (and on tyhe estimated fit). In PROC REG, use:&lt;/P&gt;&lt;P&gt;model y = x / &lt;STRONG&gt;influence&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;THis will will give all kinds of information for each observation, including cook's distance (change in normalized coefficients with the deletion of each individual). You can read about this in the REG chapter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 18:53:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Force-a-regression-coefficient-to-be-negative/m-p/218224#M11815</guid>
      <dc:creator>lvm</dc:creator>
      <dc:date>2015-04-09T18:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: Force a regression coefficient to be negative</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Force-a-regression-coefficient-to-be-negative/m-p/218225#M11816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;
&lt;P&gt;If I remember right, if you consider your data to be normal distributed, then the maximum likelihood will also be the estimate obtained by ordinary least squares.&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;It's the errors, not the data itself, that have to be normally distributed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 19:50:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Force-a-regression-coefficient-to-be-negative/m-p/218225#M11816</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2015-04-09T19:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Force a regression coefficient to be negative</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Force-a-regression-coefficient-to-be-negative/m-p/218226#M11817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If not concerned about the interpretation, just multiply X by -1 and run regression. This will give you negative A. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 02:32:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Force-a-regression-coefficient-to-be-negative/m-p/218226#M11817</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2015-04-10T02:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Force a regression coefficient to be negative</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Force-a-regression-coefficient-to-be-negative/m-p/218227#M11818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;
&lt;P&gt;stat@sas wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;If not concerned about the interpretation, just multiply X by -1 and run regression. This will give you negative A.&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;well, um ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would you ever justify this method to a reviewer or colleague?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 13:40:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Force-a-regression-coefficient-to-be-negative/m-p/218227#M11818</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2015-04-10T13:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: Force a regression coefficient to be negative</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Force-a-regression-coefficient-to-be-negative/m-p/218228#M11819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;
&lt;P&gt;JacobSimonsen wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Nevertheless, if you still insist to do this, it is easy to put restrictions on the parameters in nlmixed, which can handle most regression models. I found this example in the SAS-documentation where they use a bound on the parameters: &lt;A class="jive-link-external-small" href="http://support.sas.com/documentation/cdl/en/statug/67523/HTML/default/viewer.htm#statug_nlmixed_examples03.htm"&gt;http://support.sas.com/documentation/cdl/en/statug/67523/HTML/default/viewer.htm#statug_nlmixed_examples03.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;I have been thinking about this. If you have data that without restrictions, has a positive slope, and you restrict the estimation method to produce a negative slope, wouldn't you get something negative but extremely close to zero? (I admit I haven't tried this on actual data.) And if that is what happens, then again I ask what is the validity of such an estimate, when the data contradicts or does not support the established theory that the slope must be negative?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A similar situation: Isn't this what happens in variance components estimation when the type 1 estimate would be negative, but when you use REML or ML and restrict the variance component to be non-negative, you usually wind up with a zero estimate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 13:47:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Force-a-regression-coefficient-to-be-negative/m-p/218228#M11819</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2015-04-10T13:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Force a regression coefficient to be negative</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Force-a-regression-coefficient-to-be-negative/m-p/218229#M11820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;
&lt;P&gt;wutao9999 wrote:&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;One way I am thinking is that: If the results of A is positive, I remove one point that is most influential to cause A being positive.&amp;nbsp; After removing the point, then do regression again.&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been thinking about this. Once you fit the regression and get a positive slope, the regression diagnostics that SAS produces might show that the most influential point could be pulling the regression slope to be negative, and without that data point, the slope would be more positive (i.e. deleting this point would move the slope in the wrong direction). I think you'd have to specify that you would delete only the most influential point that is making the slope more positive and without this point the slope would be negative, or closer to negative (i.e. moving in the desired direction).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will eventually produce a result that has a negative slope, but I don't see how this method can be justified.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 14:35:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Force-a-regression-coefficient-to-be-negative/m-p/218229#M11820</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2015-04-10T14:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Force a regression coefficient to be negative</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Force-a-regression-coefficient-to-be-negative/m-p/218230#M11821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for all the useful comments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do agree that it is danger to remove points without a scientific ground. I would like to propose a new way to see if we agree on it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At first, I want to emphasize that, for the problem we have, the coefficient A must be negative, otherwise it doesn't make business sense at all.&amp;nbsp; As we all know, the reason why the data still yields a positive coefficient A is that there is unknown factor affecting the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second, generally, like the points {(low X value, low Y value), (high X value, high Y value)}, these kinds of points usually are most influential ones causing A being positive.&amp;nbsp; For the problem we have, these points do not follow business common sense because a high X value should relate to a low Y value.&amp;nbsp; However, it does exist in the data because of other unknown factor plays a major impact here.&amp;nbsp; I am wondering that, instead of removing these points, we should add a new event variable for each of these points to account for the unknown factor, by adding the event variable into the model iteratively for the most influential points sequentially, we can eventually get a negative coefficient A. Does anyone know any existing methods for doing this kind of work?&amp;nbsp; Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 14:53:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Force-a-regression-coefficient-to-be-negative/m-p/218230#M11821</guid>
      <dc:creator>wutao9999</dc:creator>
      <dc:date>2015-04-10T14:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Force a regression coefficient to be negative</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Force-a-regression-coefficient-to-be-negative/m-p/218231#M11822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm sure people could think of dozens of algorithms to take this data and obtain a negative slope.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I propose a very simple algorithm, for which the slope will always be negative.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data find_slope;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; slope= -2.3;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doesn't get any simpler than that!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My point is that I don't know how you can justify any of these algorithms that are designed to take data with a positive slope and turn it into a negative slope estimate. I doubt you could get such a thing published, and I think your colleagues would scoff as well. &lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;Just because you can do a certain calculation doesn't mean you should do that calculation.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, if there is an unknown factor affecting the data, then perhaps you ought to spend your efforts trying to identify what that factor is and then mathematically or theoretically remove it from the data. In fact, if there is such a factor affecting the slope, you would be wise to search for it and account for it, &lt;EM&gt;as it is overwhelming the signal you think you are going to find&lt;/EM&gt;. Or, as I said way back in my first post on this thread "If it were me, I'd see if there were substantive reasons to remove certain pieces of data (&lt;EM&gt;e.g.&lt;/EM&gt; recording errors, or the process by which the data was generated was compromised, &lt;EM&gt;etc&lt;/EM&gt;.)"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But of all of the algorithms discussed so far, none of which I think can be justified, I like mine the best. Simple and effective!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 15:10:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Force-a-regression-coefficient-to-be-negative/m-p/218231#M11822</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2015-04-10T15:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Force a regression coefficient to be negative</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Force-a-regression-coefficient-to-be-negative/m-p/218232#M11823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PaigeMiller: There is a paradox here. It is apparently that we know there are abnormalities in the data causing the positive coefficient A, we all know we should find out the reason why they are happening.&amp;nbsp; But for the god sake, no one could ever find it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we do nothing about the data, then we get a positive A.&amp;nbsp; Yes, I agree with you, we should just present a positive A to the business.&amp;nbsp; Then, you will be responded.&amp;nbsp; THE ANALYSIS IS A NOSSIANCE.&amp;nbsp; NO ONE WOULD EVER BELIEVE IT CAN BE POSITIVE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess our conclusion is that:&amp;nbsp;&amp;nbsp; We had NOTHING. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 15:24:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Force-a-regression-coefficient-to-be-negative/m-p/218232#M11823</guid>
      <dc:creator>wutao9999</dc:creator>
      <dc:date>2015-04-10T15:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Force a regression coefficient to be negative</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Force-a-regression-coefficient-to-be-negative/m-p/218233#M11824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I agree with that conclusion, the data cannot be used to estimate the slope.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 15:28:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Force-a-regression-coefficient-to-be-negative/m-p/218233#M11824</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2015-04-10T15:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Force a regression coefficient to be negative</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Force-a-regression-coefficient-to-be-negative/m-p/218234#M11825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;wutao9999,&lt;/P&gt;&lt;P&gt;you are in very dangerous territory here, and most of your ideas on parameter estimation cannot be supported. It would never get past peer review. There are some formal things you can do, but the specifics will depend on your system. Your surprising parameter estimate (slope) could be do to one or more highly influential observations (outliers or high leverage values), or to the presence of other unmeasured variables that are (highly) correlated with x or the error (residual) of the model. For the latter, there are various things you can do, &lt;EM&gt;if&lt;/EM&gt; you have the other measured variables. Use of instrument variables is one possibility. I don't think you have other variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the former, there are things you can do to formally look at influential variables. I told you about this in my previous post. You look at, for instance, DFBETAS for each observation to see the influence of the observation on the parameter estimate. I like to look at Cook's distance also. You &lt;EM&gt;might&lt;/EM&gt; be able to justify dropping an excessively influential observation if you can identify something wrong with it. Dropping it because you don't like the result is not a valid reason. You can also switch to robust regression methods to discount the influence of extreme observations (extreme in terms of x and/or y). This is often most beneficial with small data sets, but can be used for any. I demonstrate this with an example below (just run the sas code). I made up a very small data set that would have a negative slope except for one (really extreme) observation. The REG output clearly shows the influence of this value on the slope and intercept estimate (you don't need fancy methods for this extreme example, but it is a demonstration of DFBETAS, Cook's distance, and so on). The slope estimate is positive because of this observation.&amp;nbsp; If you use ROBUSTREG (even with default estimation), that extreme observation (although still in the dataset) does not have much of an influence on the results; the estimated slope is now negative. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an alternative to the above approaches, you can take a Bayesian approach. If you are certain that the slope must be negative based on past work, then you could place a highly informative prior on the slope. In my example below, I used GENMOD and chose a normal prior for the slope and intercept. For the informative normal prior on the slope, 95% of the distribution mass is (roughly) between -1.5 and -0.5 (in my arbitrary example). As you can see if you run my code, the mean of the posterior for the slope is about -1 with this informative prior, but the posterior mean slope is a positive 0.3 with a noninformative prior (also in my example below). But you should realize, the Bayesian estimate of the slope (with informative prior) is &lt;EM&gt;not&lt;/EM&gt; the slope that best fits the observations. Rather, the posterior distribution combines prior knowledge and the new information from the current data set. With a highly informative prior, the mean of the posterior may not give a good fit to the current data. Interpretation is different. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I only touched on Bayesian approaches, just to give you an idea. I come back to my original point: you ideas for this problem cannot be supported. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data a;&lt;/P&gt;&lt;P&gt;input x y;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;0&amp;nbsp;&amp;nbsp;&amp;nbsp; 50&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp; 45&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp; 47&lt;/P&gt;&lt;P&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp; 45&lt;/P&gt;&lt;P&gt;4&amp;nbsp;&amp;nbsp;&amp;nbsp; 44&lt;/P&gt;&lt;P&gt;5&amp;nbsp;&amp;nbsp;&amp;nbsp; 40&lt;/P&gt;&lt;P&gt;6&amp;nbsp;&amp;nbsp;&amp;nbsp; 38&lt;/P&gt;&lt;P&gt;7&amp;nbsp;&amp;nbsp;&amp;nbsp; 41&lt;/P&gt;&lt;P&gt;8&amp;nbsp;&amp;nbsp;&amp;nbsp; 80&lt;/P&gt;&lt;P&gt;9&amp;nbsp;&amp;nbsp;&amp;nbsp; 35&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;*see the big influence of the one observation on the coefficients (dfbetas);&lt;/P&gt;&lt;P&gt;*this gives positive (but not significant here) slope estimate;&lt;/P&gt;&lt;P&gt;proc reg data=a plots=(CooksD RStudentByLeverage DFFITS DFBETAS);&lt;/P&gt;&lt;P&gt;model y = x / influence;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;*robust regression automatically diminishes the influence of an outlier;&lt;/P&gt;&lt;P&gt;*now the estimated slope is negative;&lt;/P&gt;&lt;P&gt;proc robustreg data=a;&lt;/P&gt;&lt;P&gt;model y = x;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;*do a MLE for the same linear model;&lt;/P&gt;&lt;P&gt;proc genmod data=a;&lt;/P&gt;&lt;P&gt;model y = x;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;*now do a Bayesian analysis (with noninformative normal priors);&lt;/P&gt;&lt;P&gt;*note that mean of posterior distribution for x (the slope) is positive;&lt;/P&gt;&lt;P&gt;*(but with credible interval for slope covering 0);&lt;/P&gt;&lt;P&gt;proc genmod data=a;&lt;/P&gt;&lt;P&gt;model y = x;&lt;/P&gt;&lt;P&gt;bayes coefprior=normal;&amp;nbsp;&amp;nbsp;&amp;nbsp; *noninformative normal priors (i.e., very large variances);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Informative prior (posterior mean for slope is mostly from -1.5 and -0.5, centered on -1);&lt;/P&gt;&lt;P&gt;*Non-informative prior for intercept (large variance);&lt;/P&gt;&lt;P&gt;data normprior;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;input _type_ $ x intercept;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&amp;lt;--use x for the slope and intercept for intercept;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;Var&amp;nbsp; 0.0625&amp;nbsp;&amp;nbsp;&amp;nbsp; 100000&lt;/P&gt;&lt;P&gt;Mean -1.0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*with highly informative prior for slope, one gets negative mean for the poserior for slope;&lt;/P&gt;&lt;P&gt;proc genmod data=a;&lt;/P&gt;&lt;P&gt;model y = x;&lt;/P&gt;&lt;P&gt;bayes coefprior=normal(input=normprior);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 16:11:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Force-a-regression-coefficient-to-be-negative/m-p/218234#M11825</guid>
      <dc:creator>lvm</dc:creator>
      <dc:date>2015-04-10T16:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Force a regression coefficient to be negative</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Force-a-regression-coefficient-to-be-negative/m-p/218235#M11826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Very helpful.&amp;nbsp; Appreciate your comments...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 16:28:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Force-a-regression-coefficient-to-be-negative/m-p/218235#M11826</guid>
      <dc:creator>wutao9999</dc:creator>
      <dc:date>2015-04-10T16:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: Force a regression coefficient to be negative</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Force-a-regression-coefficient-to-be-negative/m-p/218236#M11827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I like your comments.&amp;nbsp; Direct and helpful..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 16:29:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Force-a-regression-coefficient-to-be-negative/m-p/218236#M11827</guid>
      <dc:creator>wutao9999</dc:creator>
      <dc:date>2015-04-10T16:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: Force a regression coefficient to be negative</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Force-a-regression-coefficient-to-be-negative/m-p/218237#M11828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please note: my Bayesian example uses a very strong prior distribution. One would need a &lt;STRONG&gt;very&lt;/STRONG&gt; strong argument to justify such a prior. I used it to demonstrate the concept.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2015 20:41:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Force-a-regression-coefficient-to-be-negative/m-p/218237#M11828</guid>
      <dc:creator>lvm</dc:creator>
      <dc:date>2015-04-10T20:41:22Z</dc:date>
    </item>
  </channel>
</rss>

