fit_model.Rd
Fit (regularized) generalized linear model
fit_model( formula, data, method = c("glm", "glmnet", "cv.glmnet", "brms", "xgb", "bagging_ridge", "bayesian_ridge"), family = gaussian, alpha = 1, ... )
formula | An object of class |
---|---|
data | A |
method | A character string indicating the method to fit the model.
|
family | A description of the error distribution and link function to be used in the model.
See |
alpha | The elasticnet mixing parameter. See |
... | Other parameters for the model fitting function. |
A list with two data frames: gof
contains goodness of fit measures of the fit and
coefs
contains the fitted coefficients.