brierScore: Calculate Brier score

View source: R/brierScore.R

brierScoreR Documentation

Calculate Brier score

Description

This function calculates the Brier score for a given 0-1-vector and vector of probabilities.

Usage

brierScore(truth_name, prob_name)

Arguments

truth_name

(character(1L)) Character containing the name of the vector of 0-1-values encoded as integer or numeric.

prob_name

(character(1L)) Character containing the name of the vector of probabilities.

Value

Brier score and number of values used as weights for later aggregation.

Author(s)

Daniel S.


difuture-lmu/ds.calibration documentation built on March 19, 2022, 11:50 a.m.