brierScore: Calculate Brier score, called by dsBrierScore

View source: R/brier_score.R

brierScoreR Documentation

Calculate Brier score, called by dsBrierScore

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/dsBinVal documentation built on Oct. 9, 2024, 8:43 a.m.