-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ols_step_forward_p(...) problem using many potential predictors #199
Comments
Hi @hirscht, is it possible to share the data for debugging? |
Unfortunately not. But what I can do is, to insert the last part of the message that I get directly before the error, by using details=TRUE in the function.
|
Let me look into this and get back to you. |
I´m using a large number of potential predictors (larger than the number of predictand values used) with ols_step_forward_p(...) to select the predictors that fulfill the condition set by the p value. This works for most of the cases when p is set to a relatively low value but sometimes I have an error:
Error in Anova.lm(m) :
residual sum of squares is 0 (within rounding error)
This happens when too many potential predictors fulfill the condition set by the p-value, resulting in being selected by the method, which eventially leads to the residual sum of sqaures being zero (Rsquared=1.000). In this case, I only get the Error message above and the result of the selection before the error is lost (not stored in a ols_step_forward_p class object).
Would it be possible to store the calculated values even if there is this error? What I would need the most is the list of the selected predictors (in the order of the selection).
The text was updated successfully, but these errors were encountered: