Learn R Programming

logicDT (version 1.0.5)

calcBrier: Calculate the Brier score

Description

Computation of the Brier score, i.e., the mean squared error for risk estimates in a binary classification problem.

Usage

calcBrier(preds, y)

Value

The Brier score

Arguments

preds

Numeric vector of predictions

y

True outcomes