compute_RPS: Compute RPS for a single forecast

Description Usage Arguments Value Examples

View source: R/misc.R

Description

Compute RPS for a single forecast

Usage

1
compute_RPS(forecast, outcome)

Arguments

forecast

Vector of length N (forecast).

outcome

Index of the true outcome (between 1 and N).

Value

RPS (numeric scalar)

Examples

1
compute_RPS(c(.2, .5, .3), 2)

HuraultMisc documentation built on Sept. 6, 2021, 9:09 a.m.