winkler_score.Rd
Winkler score for probabilistic forecasts
winkler_score(actual, lower, upper, level = 95, scale = FALSE)
numeric vector of actual values
numeric vector of lower bounds
numeric vector of upper bounds
numeric level of confidence
logical, if TRUE, the score is scaled by the range of the bounds
numeric score
actual <- c(1, 2, 3, 4, 5)
lower <- c(0, 1, 2, 3, 4)
upper <- c(2, 3, 4, 5, 6)
winkler_score(actual, lower, upper)
#> [1] 2
winkler_score(actual, lower, upper, scale = TRUE)
#> [1] 0
winkler_score(actual, lower, upper, level = 99)
#> [1] 2
winkler_score(actual, lower, upper, level = 99, scale = TRUE)
#> [1] 0