R/fns.R
calcDeviance.Rd
Calculate deviance.
calcDeviance(pred, y, na.rm = FALSE, eps = 1e-06)
numeric predictions
logical truth
logical, if TRUE remove NA values
numeric, smoothing term
deviance
sigr::calcDeviance(1:4,c(TRUE,FALSE,TRUE,TRUE)) #> [1] 27.63103