View source: R/metrics-quantile.R
check_input_quantile | R Documentation |
Function assesses whether the inputs correspond to the requirements for scoring quantile-based forecasts.
check_input_quantile(observed, predicted, quantile_level)
observed |
Input to be checked. Should be a numeric vector with the observed values of size n. |
predicted |
Input to be checked. Should be nxN matrix of predictive
quantiles, n (number of rows) being the number of data points and N
(number of columns) the number of quantiles per forecast.
If |
quantile_level |
Input to be checked. Should be a vector of size N that denotes the quantile levels corresponding to the columns of the prediction matrix. |
Returns TRUE if the check was successful and a string with an error message otherwise.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.