General purpose regression engine for the methods bayesglm, glm and glmnet
regEngine(
XYdata,
method = "bayesglm",
regIntercept = FALSE,
lambda = NA,
alpha = 1
)matrix with X and Y columns. First column is named as y, other columns are X.
string among ("glm", "glmnet", "bayesglm").
Logical. Should intercept be included in the model?
for method "glmnet".
for "glmnet"
list with elements: coef, se, lambda, fit (Coefficients, SE, lambda, if used, fit object.)