dss: Dawid-Sebastiani Score

Description Usage Arguments Value References Examples

View source: R/scoringRules_wrappers.R

Description

Wrapper around the dss_sample function from the scoringRules package.

Usage

1
dss(true_values, predictions)

Arguments

true_values

A vector with the true observed values of size n

predictions

nxN matrix of predictive samples, n (number of rows) being the number of data points and N (number of columns) the number of Monte Carlo samples

Value

vector with scoring values

References

Alexander Jordan, Fabian Krüger, Sebastian Lerch, Evaluating Probabilistic Forecasts withscoringRules, https://arxiv.org/pdf/1709.04743.pdf

Examples

1
2
3
true_values <- rpois(30, lambda = 1:30)
predictions <- replicate(200, rpois(n = 30, lambda = 1:30))
dss(true_values, predictions)

nikosbosse/scoringutils2 documentation built on Jan. 8, 2021, 12:12 p.m.