Learn R Programming

ebirdst (version 0.3.3)

poisson_dev: Poisson deviance

Description

Poisson deviance

Usage

poisson_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

Run this code
# NOT RUN {
obs <- c(0, 0, 1, 3, 5, 2)
pred <- c(0.5, 0.1, 2.5, 3.3, 5.2, 2.5)
ebirdst:::poisson_dev(obs, pred)
# }

Run the code above in your browser using DataLab