View source: R/scoringRules_wrappers.R
crps_sample | R Documentation |
Wrapper around the crps_sample()
function from the
scoringRules package. Can be used for continuous as well as integer
valued forecasts
crps_sample(true_values, predictions)
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. Alternatively, predictions can just be a vector of size n. |
vector with the scoring values
Alexander Jordan, Fabian Krüger, Sebastian Lerch, Evaluating Probabilistic Forecasts with scoringRules, https://www.jstatsoft.org/article/view/v090i12
true_values <- rpois(30, lambda = 1:30) predictions <- replicate(200, rpois(n = 30, lambda = 1:30)) crps_sample(true_values, predictions)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.