dev_function function

Elastic net deviance value

Elastic net deviance value

Returns the elastic net deviance value.

dev_function(y, mu, weights, family)

Arguments

  • 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.