brierScore: Calculate Brier score

View source: R/brier_score.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/dsROCGLM documentation built on March 24, 2024, 1:07 p.m.