interval_score: Interval score for a single central prediction interval

View source: R/scoreForecast.R

interval_scoreR Documentation

Interval score for a single central prediction interval

Description

The building block of the weighted interval score (Gneiting & Raftery 2007).

Usage

interval_score(observed, lo, hi, level)

Arguments

observed

realized value

lo, hi

interval bounds

level

the interval's alpha (e.g. 0.025 for a 95% interval)

Value

a single numeric value (lower is better)

Examples

interval_score(observed = 5, lo = 2, hi = 8, level = 0.05)

RtForecastR documentation built on Nov. 25, 2026, 9:09 a.m.