Skip to content
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

step AIC regression output not formatted #23

Closed
aravindhebbali opened this issue Jun 5, 2017 · 1 comment

Comments

Projects
None yet
1 participant
@aravindhebbali
Copy link
Member

commented Jun 5, 2017

output from ols_stepaic_both() is not properly formatted.

> library(olsrr)
> library(caret)
> data("Sacramento")

> lm_fit2 <- lm(price  ~ beds + baths + log(sqft), data = Sacramento)
> ols_stepaic_both(lm_fit2)
No more variables to be added or removed.


                                     Stepwise Summary                                     
----------------------------------------------------------------------------------------
Variable      Method        AIC           RSS            Sum Sq       R-Sq     Adj. R-Sq 
----------------------------------------------------------------------------------------
log(sqft)    addition    23833.104    6917101778647.02    9090748642827.41    0.568        0.567 
beds         addition     23784.59    6552176660177.97    9455673761296.46    0.591         0.59 
----------------------------------------------------------------------------------------

@aravindhebbali aravindhebbali added the bug label Jun 5, 2017

@aravindhebbali aravindhebbali self-assigned this Jun 5, 2017

@aravindhebbali

This comment has been minimized.

Copy link
Member Author

commented Jun 5, 2017

output from ols_stepaic_both() is now properly formatted.

> library(olsrr)
> library(caret)
> data("Sacramento")

> lm_fit2 <- lm(price  ~ beds + baths + log(sqft), data = Sacramento)
> ols_stepaic_both(lm_fit2)
No more variables to be added or removed.


                                     Stepwise Summary                                     
----------------------------------------------------------------------------------------
Variable      Method        AIC           RSS            Sum Sq       R-Sq     Adj. R-Sq 
----------------------------------------------------------------------------------------
log(sqft)    addition    23833.104    6.917102e+12    9.090749e+12    0.568        0.567 
beds         addition     23784.59    6.552177e+12    9.455674e+12    0.591         0.59 
----------------------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.