Calculates the Brier score
brier(...)# S3 method for default
brier(actual, predicted, ...)
# S3 method for glm
brier(modelObject, ...)
# S3 method for randomForest
brier(modelObject, ...)
# S3 method for glmerMod
brier(modelObject, ...)
# S3 method for gbm
brier(modelObject, ...)
# S3 method for rpart
brier(modelObject, ...)
additional parameters to be passed the the s3 methods
A vector of the labels
A vector of predicted values
the model object. Currently supported glm, randomForest, glmerMod, gbm