turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Find a Community

- Home
- /
- Analytics
- /
- Stat Procs
- /
- Proc reg warning - Zero or negative sum of squares

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

09-27-2010 04:55 PM

Can't figure out how to address this warning...

*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.*

Then the procedure stops. My code is this...

*proc reg data = input_dataset;*

model dep_var = <<< 32 independent vars >>>

/ selection = rsquare adjrsq cp

best = 3

noint ;

run;

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.

Anyone have some ideas? Thank you.

Then the procedure stops. My code is this...

model dep_var = <<< 32 independent vars >>>

/ selection = rsquare adjrsq cp

best = 3

noint ;

run;

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.

Anyone have some ideas? Thank you.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

09-27-2010 10:00 PM

Hi.

Do you use another selection method other than rsquare.

Such as:

/ selection = stepwise cp

/ selection = backward cp

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.

Ksharp Message was edited by: Ksharp

Do you use another selection method other than rsquare.

Such as:

/ selection = stepwise cp

/ selection = backward cp

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.

Ksharp Message was edited by: Ksharp

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

09-28-2010 12:34 AM

I have not tried other selection methods, but I suppose I should try.

And the r2 is no where near 1 so that wouldn't be the prob.

Thanks for your thoughts.

And the r2 is no where near 1 so that wouldn't be the prob.

Thanks for your thoughts.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

09-28-2010 09:23 AM

32 independent variables and no intercept? I certainly don't recommend doing that.

Can't add variable number 32, no matter what it is? Perhaps you have run out of degrees of freedom??

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.

Can't add variable number 32, no matter what it is? Perhaps you have run out of degrees of freedom??

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.