I'm using bayesglm for a logistic regression problem. It's a dataset of 150 rows and 2000 variables. I'm trying to do variable selection and usually look at glmnet in caret::rfe. However there isn't a method for bayesglm.
Is there anyway to manually define a method for rfe?
As for the the question I can only think of rewriting
lmFuncs$fitfunction, for example:and then do your
rfe.fitwithrfeControl(functions = lmFuncs)