myLMfitfunction: BEST SUBSET VARIABLE SELECTION WITH PENALIZATION FOR...

Description Usage Arguments Details Value Author(s)

Description

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

Usage

1
myLMfitfunction(Xy, Nvmax = 5)

Arguments

Xy

data.frame with X variables and the y variable named Xy$y

Nvmax

maximum size of subsets to examine

Details

Check function...

Value

a object of type lm

Author(s)

Hans Ole Ørka hans.ole.orka@gmail.org


hansoleorka/myR documentation built on May 17, 2019, 2:29 p.m.