bernoulli_dev {ebirdst}R Documentation

Bernoulli deviance

Description

Bernoulli deviance

Usage

bernoulli_dev(obs, pred)

Arguments

obs

numeric; observed values.

pred

numeric; predicted values.

Value

A named numeric vector with three elements: model deviance, mean deviance, and deviance explained.

Examples

obs <- c(1, 1, 1, 0, 0, 0)
pred <- c(0.9, 0.8, 0.7, 0.3, 0.1, 0.2)
ebirdst:::bernoulli_dev(obs, pred)

[Package ebirdst version 0.3.5 Index]