brierScore: brierScore

View source: R/EvaluationSummary.R

brierScoreR Documentation

brierScore

Description

brierScore

Usage

brierScore(prediction)

Arguments

prediction

A prediction dataframe

Details

Calculates the brierScore from prediction object

Value

A list containing the brier score and the scaled brier score

Examples

prediction <- data.frame(
  value = c(0.1, 0.2, 0.3, 0.4, 0.5),
  outcomeCount = c(0, 1, 0, 1, 1))
brierScore(prediction)

OHDSI/PatientLevelPrediction documentation built on Feb. 14, 2025, 9:44 a.m.