Helper function to check inputs for lower-level score functions.
check_predictions(
predictions,
true_values = NULL,
type = c("continuous", "integer", "binary"),
class = c("vector", "matrix")
)
an object with predictions. Depending on whether
class = vector
or class = "matrix"
this can be either a vector of length
n (corresponding to the length of the true_values) or a 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
A vector with the true observed values of size n
character, one of "continuous" (default), "integer" or "binary" that defines the type of the forecast
character, either "vector" (default) or "matrix" that determines the class the input has to correspond to