Learn R Programming

ModelMetrics (version 1.2.2.2)

brier: Brier Score

Description

Calculates the Brier score

Usage

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, ...)

Arguments

additional parameters to be passed the the s3 methods

actual

A vector of the labels

predicted

A vector of predicted values

modelObject

the model object. Currently supported glm, randomForest, glmerMod, gbm