Learn R Programming

scoringutils (version 0.1.7.2)

add_sd: Add Standard Deviation to Predictions When Summarising

Description

Helper function used within eval_forecasts

Usage

add_sd(dt, varnames, by)

Arguments

dt

the data.table operated on

varnames

names of the variables for which to calculate the sd

by

grouping variable in `eval_forecasts()

Value

`data.table` with sd added