add_quantiles: Add Quantiles to Predictions When Summarising
Description
Helper function used within eval_forecasts
Usage
add_quantiles(dt, varnames, quantiles, by)
Arguments
dt
the data.table operated on
varnames
names of the variables for which to calculate quantiles
by
grouping variable in `eval_forecasts()
Value
`data.table` with quantiles added