<?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 reg warning - Zero or negative sum of squares in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-reg-warning-Zero-or-negative-sum-of-squares/m-p/7744#M7</link>
    <description>32 independent variables and no intercept? I certainly don't recommend doing that.&lt;BR /&gt;
&lt;BR /&gt;
Can't add variable number 32, no matter what it is? Perhaps you have run out of degrees of freedom??&lt;BR /&gt;
&lt;BR /&gt;
The whole idea of having 32 independent variables and then doing some variable selection is usually doomed to fail. A better approach, in my opinion, is something like Partial Least Squares regression, where you don't have to drop variables, and you find linear combinations of independent variables that are predictive of Y.</description>
    <pubDate>Tue, 28 Sep 2010 13:23:54 GMT</pubDate>
    <dc:creator>Paige</dc:creator>
    <dc:date>2010-09-28T13:23:54Z</dc:date>
    <item>
      <title>Proc reg warning - Zero or negative sum of squares</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-reg-warning-Zero-or-negative-sum-of-squares/m-p/7741#M4</link>
      <description>Can't figure out how to address this warning...&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;WARNING: The variable l12_drop_giv_obchan_other has zero or negative sum of squares after being adjusted for the intercept, if there is one. Hence, it will not be used in any subset selection.&lt;BR /&gt;
&lt;/I&gt;&lt;BR /&gt;
Then the procedure stops. My code is this...&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;proc reg data = input_dataset;&lt;BR /&gt;
  model dep_var =  &amp;lt;&amp;lt;&amp;lt; 32 independent vars &amp;gt;&amp;gt;&amp;gt;&lt;BR /&gt;
    / selection = rsquare adjrsq cp&lt;BR /&gt;
       best = 3&lt;BR /&gt;
       noint ;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;/I&gt;&lt;BR /&gt;
Funny thing is it runs fine when there are 31 variables, but not when I add more. And it doesn't seem to matter which variable I added. All the values in the variables appear to be fine. I can't seem to find any documentation about this warning. &lt;BR /&gt;
&lt;BR /&gt;
Anyone have some ideas? Thank you.</description>
      <pubDate>Mon, 27 Sep 2010 20:55:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-reg-warning-Zero-or-negative-sum-of-squares/m-p/7741#M4</guid>
      <dc:creator>jawon</dc:creator>
      <dc:date>2010-09-27T20:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: Proc reg warning - Zero or negative sum of squares</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-reg-warning-Zero-or-negative-sum-of-squares/m-p/7742#M5</link>
      <description>Hi.&lt;BR /&gt;
Do you use another selection method other than rsquare.&lt;BR /&gt;
Such as:&lt;BR /&gt;
&lt;BR /&gt;
/ selection = stepwise cp&lt;BR /&gt;
&lt;BR /&gt;
/ selection = backward cp&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
I supposed that the model includes a lot of  variables, So the Rsquare of model is almost to approach to one,when you add thirty-second var, the model cann't promote the Rsquare any more.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp

Message was edited by: Ksharp</description>
      <pubDate>Tue, 28 Sep 2010 02:00:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-reg-warning-Zero-or-negative-sum-of-squares/m-p/7742#M5</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2010-09-28T02:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Proc reg warning - Zero or negative sum of squares</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-reg-warning-Zero-or-negative-sum-of-squares/m-p/7743#M6</link>
      <description>I have not tried other selection methods, but I suppose I should try. &lt;BR /&gt;
&lt;BR /&gt;
And the r2 is no where near 1 so that wouldn't be the prob. &lt;BR /&gt;
&lt;BR /&gt;
Thanks for your thoughts.</description>
      <pubDate>Tue, 28 Sep 2010 04:34:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-reg-warning-Zero-or-negative-sum-of-squares/m-p/7743#M6</guid>
      <dc:creator>jawon</dc:creator>
      <dc:date>2010-09-28T04:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: Proc reg warning - Zero or negative sum of squares</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-reg-warning-Zero-or-negative-sum-of-squares/m-p/7744#M7</link>
      <description>32 independent variables and no intercept? I certainly don't recommend doing that.&lt;BR /&gt;
&lt;BR /&gt;
Can't add variable number 32, no matter what it is? Perhaps you have run out of degrees of freedom??&lt;BR /&gt;
&lt;BR /&gt;
The whole idea of having 32 independent variables and then doing some variable selection is usually doomed to fail. A better approach, in my opinion, is something like Partial Least Squares regression, where you don't have to drop variables, and you find linear combinations of independent variables that are predictive of Y.</description>
      <pubDate>Tue, 28 Sep 2010 13:23:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-reg-warning-Zero-or-negative-sum-of-squares/m-p/7744#M7</guid>
      <dc:creator>Paige</dc:creator>
      <dc:date>2010-09-28T13:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Proc reg warning - Zero or negative sum of squares</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-reg-warning-Zero-or-negative-sum-of-squares/m-p/527711#M26678</link>
      <description>&lt;P&gt;I had a similar problem and I was made after several attempts. The problem most like is that one or more variables are not yet in the data file. Take time to cross-check that. Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 14:15:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-reg-warning-Zero-or-negative-sum-of-squares/m-p/527711#M26678</guid>
      <dc:creator>Chinecherem</dc:creator>
      <dc:date>2019-01-16T14:15:03Z</dc:date>
    </item>
  </channel>
</rss>

