calc.deviance: Calculate deviance

Description Usage Arguments Author(s)

View source: R/calc.deviance.R

Description

Function to calculate deviance given two vectors of observed and predicted values. Requires a family argument which is set to binomial by default

Usage

1
2
calc.deviance(obs, pred, weights = rep(1,length(obs)), 
                family="binomial", calc.mean = TRUE)

Arguments

obs

a vector with observed values

pred

a vector with predicted values that correspond the the values in obs

weights

a vector of weight values

family

One of "binomial", "bernoulli", "poisson", "laplace", or "gaussian"

calc.mean

Logical. If TRUE, the mean deviance is returned

Author(s)

John R. Leathwick and Jane Elith


dismo documentation built on May 29, 2017, 11:57 a.m.

Search within the dismo package
Search all R packages, documentation and source code