Returns the elastic net objective function value.
obj_function(y, mu, weights, family, lambda, alpha, coefficients, vp)
Quantitative response variable.
Model's predictions for y
.
Observation weights.
A description of the error distribution and link function to be used in the model. This is the result of a call to a family function.
A single value for the lambda
hyperparameter.
The elasticnet mixing parameter, with \(0 \le \alpha \le 1\).
The model's coefficients (excluding intercept).
Penalty factors for each of the coefficients.