Learn R Programming

scoringfunctions (version 1.1)

A Collection of Loss Functions for Assessing Point Forecasts

Description

Implements multiple consistent scoring functions (Gneiting T (2011) ) for assessing point forecasts and point predictions. Detailed documentation of scoring functions' properties is included for facilitating interpretation of results.

Copy Link

Version

Install

install.packages('scoringfunctions')

Monthly Downloads

334

Version

1.1

License

GPL-3

Maintainer

Hristos Tyralis

Last Published

March 3rd, 2025

Functions in scoringfunctions (1.1)

interval_sf

Interval scoring function (Winkler scoring function)
ghuber_sf

Generalized Huber scoring function
gpl2_sf

Generalized piecewise linear power scoring function (type 2)
huberquantile_if

Huber quantile identification function
expectile_sf

Asymmetric piecewise quadratic scoring function (expectile scoring function, expectile loss function)
expectile_rs

Realised expectile score
meanlog_if

Log-transformed identification function
mre

Mean relative error (MRE)
huber_rs

Mean Huber score
maelog_sf

MAE-LOG scoring function
gpl1_sf

Generalized piecewise linear power scoring function (type 1)
maesd_sf

MAE-SD scoring function
mse

Mean squared error (MSE)
nmoment_sf

\(n\)-th moment scoring function
mean_if

Mean identification function
mspe

Mean squared percentage error (MSPE)
mape

Mean absolute percentage error (MAPE)
nse

Nash-Sutcliffe efficiency (NSE)
obsweighted_sf

Observation-weighted scoring function
quantile_if

Quantile identification function
linex_sf

LINEX scoring function
quantile_sf

Asymmetric piecewise linear scoring function (quantile scoring function, quantile loss function)
scoringfunctions-package

Overview of the functions in the scoringfunctions package
serr_sf

Squared error scoring function
huber_sf

Huber scoring function
hubermean_if

Huber mean identification function
quantile_level

Sample quantile level function
nmoment_if

\(n\)-th moment identification function
serrpower_sf

Squared error of power transformations scoring function
serrsq_sf

Squared error of squares scoring function
mae

Mean absolute error (MAE)
lqquantile_sf

\(L_q\)-quantile scoring function
mv_sf

Mean - variance scoring function
relerr_sf

Relative error scoring function (MAE-PROP scoring function)
quantile_rs

Realised quantile score
srelerr_sf

Squared relative error scoring function
sperr_sf

Squared percentage error scoring function
serrexp_sf

Squared error exp scoring function
lqmean_sf

\(L_q\)-mean scoring function
serrlog_sf

Squared error log scoring function
msre

Mean squared relative error (MSRE)
mv_if

Mean - variance identification function
errorspread_sf

Error - spread scoring function
aerr_sf

Absolute error scoring function
bregman2_sf

Bregman scoring function (type 2, Patton scoring function)
bregman3_sf

Bregman scoring function (type 3, QLIKE scoring function)
bregman4_sf

Bregman scoring function (type 4, Patton scoring function)
capping_function

Capping function
aperr_sf

Absolute percentage error scoring function
bmedian_sf

\(\beta\)-median scoring function
expectile_if

Expectile identification function
bregman1_sf

Bregman scoring function (type 1)