Wrapper around the crps_sample()
function from the
scoringRules package. Can be used for continuous as well as integer
valued forecasts
Usage
crps_sample(true_values, predictions)
Value
vector with the scoring values
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. Alternatively, predictions can just be a vector of size n.