Learn R Programming

scoringfunctions (version 1.2)

Loss Functions for Assessing Point Forecasts

Description

Implements consistent loss functions and the corresponding identification functions for point forecasts, including those of the mean, the median, quantiles, expectiles, moments and Huber functionals (Gneiting T (2011) ; Fissler T, Ziegel JF (2016) ). Pointwise losses and realised average scores are both available. Detailed documentation of the functions' properties is included for facilitating the interpretation of results.

Copy Link

Version

Install

install.packages('scoringfunctions')

Monthly Downloads

157

Version

1.2

License

GPL-3

Maintainer

Hristos Tyralis

Last Published

August 30th, 2026

Functions in scoringfunctions (1.2)

bregman4_sf

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

Expectile identification function
expectile_rs

Realised expectile score
expectile_sf

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

Capping function
errorspread_sf

Error - spread scoring function
gpl1_rs

Realised generalized piecewise linear power score (type 1)
gpl1_sf

Generalized piecewise linear power scoring function (type 1)
ghuber_sf

Generalized Huber scoring function
ghuber_rs

Realised generalized Huber score
interval_sf

Interval scoring function (Winkler scoring function)
huber_rs

Realised Huber score
linex_sf

LINEX scoring function
hubermean_if

Huber mean identification function
lqmean_rs

Realised \(L_q\)-mean score
huber_sf

Huber scoring function
linex_rs

Realised LINEX score
huberquantile_if

Huber quantile identification function
gpl2_rs

Realised generalized piecewise linear power score (type 2)
gpl2_sf

Generalized piecewise linear power scoring function (type 2)
lqquantile_sf

\(L_q\)-quantile scoring function
mape

Mean absolute percentage error (MAPE)
maelog_rs

Realised MAE-LOG score
maesd_rs

Realised MAE-SD score
maelog_sf

MAE-LOG scoring function
mean_if

Mean identification function
maesd_sf

MAE-SD scoring function
lqmean_sf

\(L_q\)-mean scoring function
mae

Mean absolute error (MAE)
lqquantile_rs

Realised \(L_q\)-quantile score
msre

Mean squared relative error (MSRE)
mspe

Mean squared percentage error (MSPE)
meanexp_if

Exp-transformed identification function
meanpower_if

Power-transformed identification function
mse

Mean squared error (MSE)
nmoment_if

\(n\)-th moment identification function
mre

Mean relative error (MRE)
mv_sf

Mean - variance scoring function
mv_if

Mean - variance identification function
meanlog_if

Log-transformed identification function
nse

Nash-Sutcliffe efficiency (NSE)
powerweighted_sf

Power-weighted squared error scoring function
obsweighted_rs

Realised observation-weighted score
nmoment_rs

Realised \(n\)-th moment score
nmoment_sf

\(n\)-th moment scoring function
quantile_if

Quantile identification function
obsweighted_sf

Observation-weighted scoring function
qlike

QLIKE
powerweighted_if

Power-weighted identification function
quantile_level

Sample quantile level function
serr_sf

Squared error scoring function
quantile_rs

Realised quantile score
serrexp_sf

Squared error exp scoring function
quantile_sf

Asymmetric piecewise linear scoring function (quantile scoring function, quantile loss function)
serrexp_rs

Realised squared error exp score
serrlog_sf

Squared error log scoring function
relerr_sf

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

Realised squared error of power transformations score
scoringfunctions-package

Overview of the functions in the scoringfunctions package
serrlog_rs

Realised squared error log score
sperr_sf

Squared percentage error scoring function
serrsq_rs

Realised squared error of squares score
srelerr_sf

Squared relative error scoring function
serrpower_sf

Squared error of power transformations scoring function
serrsq_sf

Squared error of squares scoring function
bregman3_sf

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

Absolute error scoring function
bmedian_rs

Realised \(\beta\)-median score
bregman2_sf

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

Realised Bregman score (type 1)
bregman4_rs

Realised Bregman score (type 4, Patton score)
bregman1_sf

Bregman scoring function (type 1)
bregman2_rs

Realised Bregman score (type 2, Patton score)
bmedian_sf

\(\beta\)-median scoring function
aperr_sf

Absolute percentage error scoring function