Learn R Programming

PatientLevelPrediction (version 6.4.1)

brierScore: brierScore

Description

brierScore

Usage

brierScore(prediction)

Value

A list containing the brier score and the scaled brier score

Arguments

prediction

A prediction dataframe

Details

Calculates the brierScore from prediction object

Examples

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

Run the code above in your browser using DataLab