Elastic net deviance value
Returns the elastic net deviance value.
dev_function(y, mu, weights, family)
y
: Quantitative response variable.mu
: Model's predictions for y
.weights
: Observation weights.family
: 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.