Description Usage Arguments Details Value Author(s)
Model selection using the Bayesian information criterion (BIC) and a branc and bound search for the best subset implemented in package leaps.Among the alternative subsets, the subset with lowest BIC are preferred. Furthermore, the selection procedure penalized for collinearity using the variance inflation factor (VIF). The subset with one variable less are iteratively selected if any of the variables in the current subset has a large VIF greater than 5. TODO: implement posibility to change VIF value
1 | myLMfitfunction(Xy, Nvmax = 5)
|
Xy |
data.frame with X variables and the y variable named Xy$y |
Nvmax |
maximum size of subsets to examine |
Check function...
a object of type lm
Hans Ole Ørka hans.ole.orka@gmail.org
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.