fit_glmnet | R Documentation |
Fit regularized generalized linear model
fit_glmnet(formula, data, family = gaussian, alpha = 0.5, ...)
formula |
An object of class |
data |
A |
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. |
nlambda |
The number of |
A list with two data frames: gof
contains goodness of fit measures of the fit and
coefs
contains the fitted coefficients.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.