calcDev: Calculate the deviance

View source: R/utils.R

calcDevR Documentation

Calculate the deviance

Description

Computation of the deviance, i.e., two times the negative log likelihood for risk estimates in a binary classification problem.

Usage

calcDev(preds, y)

Arguments

preds

Numeric vector of predictions

y

True outcomes

Value

The deviance


logicDT documentation built on Jan. 14, 2023, 5:06 p.m.