Internal use only. Jane Elith/John Leathwick 17th March 2005. Calculates calibration statistics for either binomial or count data but the family argument must be specified for the latter a conditional test for the latter will catch most failures to specify the family.
calibration(obs, preds, family = c("binomial", "bernoulli", "poisson"))
roc & calibration stats internally within gbm runs e.g. in gbm.auto.
Observed data.
Predicted data.
Statistical distribution family. Choose one.
Simon Dedman, simondedman@gmail.com