calcDeviance | R Documentation |
Calculate deviance.
calcDeviance(pred, y, na.rm = FALSE, eps = 1e-06)
pred |
numeric predictions |
y |
logical truth |
na.rm |
logical, if TRUE remove NA values |
eps |
numeric, smoothing term |
deviance
sigr::calcDeviance(1:4,c(TRUE,FALSE,TRUE,TRUE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.