Learn R Programming

sigr (version 1.1.5)

calcDeviance: Calculate deviance.

Description

Calculate deviance.

Usage

calcDeviance(pred, y, na.rm = FALSE, eps = 1e-06)

Value

deviance

Arguments

pred

numeric predictions

y

logical truth

na.rm

logical, if TRUE remove NA values

eps

numeric, smoothing term

Examples

Run this code

sigr::calcDeviance(1:4,c(TRUE,FALSE,TRUE,TRUE))

Run the code above in your browser using DataLab