powered by
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
# NOT RUN { sigr::calcDeviance(1:4,c(TRUE,FALSE,TRUE,TRUE)) # }
Run the code above in your browser using DataLab