Learn R Programming

logicDT (version 1.0.5)

calcDev: 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)

Value

The deviance

Arguments

preds

Numeric vector of predictions

y

True outcomes