powered by
Calculate deviance.
calcDeviance(pred, y, na.rm = FALSE, eps = 1e-06)
deviance
numeric predictions
logical truth
logical, if TRUE remove NA values
numeric, smoothing term
sigr::calcDeviance(1:4,c(TRUE,FALSE,TRUE,TRUE))
Run the code above in your browser using DataLab