Learn R Programming

scoringutils (version 0.1.7.2)

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

quantiles

the desired quantiles

by

grouping variable in `eval_forecasts()

Value

`data.table` with quantiles added