The elastic net penalty is defined by a linear combination of lasso (L1) and ridge (L2) penalties. The generalized elastic net penalty replaces the L2 penalty with the bridge penalty (Lp).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
formula |
a model formula. |
data |
a data frame |
family |
the glm family. defaults to gaussian(). |
lambda |
the penalty |
alpha |
the mixing parameter for the lasso and bridge penalties. defaults to 0.5. 0 gives full weight to the bridge penalty, while 1 gives full weight to the lasso penalty. |
kappa |
the Lp norm of the bridge penalty. defaults to 1.4. |
weights |
an optional vector of weights to be used in the fitting process. |
start |
starting values for the coefficients. |
etastart |
starting values for the linear predictor. |
mustart |
starting values for the fitted values. |
offset |
this can be used to specify an a priori known component to be included in the linear predictor during fitting. |
standardize |
whether the regressors should be standardized (this is recommended) or not. defaults to TRUE. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.