lmSub | R Documentation |
Produces the best linear model for a specific number of predictors in a subset selection.
lmSub(object, d)
object |
An object of type "regsubsets" |
d |
Number of data predictors |
The best linear model with d
predictors
subs=leaps::regsubsets(mpg~.,mtcars)
summary(lmSub(subs,3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.