View source: R/metrics-sample.R
dss_sample | R Documentation |
Wrapper around the dss_sample()
function from the
scoringRules package.
dss_sample(observed, predicted, ...)
observed |
A vector with observed values of size n |
predicted |
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. Alternatively, |
... |
Additional arguments passed to dss_sample() from the scoringRules package. |
Vector with scores.
Overview of required input format for sample-based forecasts
Alexander Jordan, Fabian Krüger, Sebastian Lerch, Evaluating Probabilistic Forecasts with scoringRules, https://www.jstatsoft.org/article/view/v090i12
observed <- rpois(30, lambda = 1:30)
predicted <- replicate(200, rpois(n = 30, lambda = 1:30))
dss_sample(observed, predicted)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.