quantile2disc: Convert Continuous Forecast Values to Discrete Forecast Values.
Description
Converts continuous forecast values into discrete forecast values. This is necessary in calculating the quantile score decomposition. Discrete forecasts are defined by the mean value of forecasts within a bin specified by the bin vector (bin boundaries).
Usage
quantile2disc(x, bins)
Value
new
New vector x (continuous forecast values replaced with disretized forecast values)