compute_RPS: Compute RPS for a single forecast

View source: R/misc.R

compute_RPSR Documentation

Compute RPS for a single forecast

Description

Compute RPS for a single forecast

Usage

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

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

ghurault/HuraultMisc documentation built on Dec. 9, 2024, 10:39 a.m.