bernoulli_dev: Bernoulli deviance

Description Usage Arguments Value Examples

View source: R/ebirdst-ppms.R

Description

Bernoulli deviance

Usage

1
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

1
2
3
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)

ebirdst documentation built on Jan. 16, 2021, 5:16 p.m.