| MSIS | R Documentation |
Accuracy measures for interval forecasts.
MSIS(
lower,
upper,
actual,
train,
level = 95,
period,
d = period == 1,
D = period > 1,
na.rm = TRUE,
...
)
winkler_score(lower, upper, actual, level = 95, na.rm = TRUE, ...)
interval_measures
lower |
A numeric vector of lower bounds of the interval forecasts. |
upper |
A numeric vector of upper bounds of the interval forecasts. |
actual |
A numeric vector of realised values. |
train |
A numeric vector of responses used to train the model. Required by the scaled scores. |
level |
The nominal level of the forecast interval (e.g., 95 or 0.95).
Defaults to |
period |
The seasonal period of the data. Required by the scaled scores. |
d |
Should the response model include a first difference? Defaults to
|
D |
Should the response model include a seasonal difference? Defaults
to |
na.rm |
If |
... |
Additional arguments for each measure. |
An object of class list of length 2.
For winkler_score and MSIS, a single numeric scalar
giving the average interval score (Winkler or mean scaled interval
score).
For the exported object interval_measures, a named list of
functions that can be supplied to higher-level accuracy routines.
point_measures for the point counterparts, and
accuracy.cvforecast, which applies these measures to a
cross-validation or a conformal prediction object.
set.seed(1)
actual <- rnorm(10)
lower <- actual - runif(10, 0.5, 1)
upper <- actual + runif(10, 0.5, 1)
train <- rnorm(50)
# Winkler score at 95%
winkler_score(lower, upper, actual, level = 95)
# Mean scaled interval score (needs training data and period)
MSIS(lower, upper, actual, train, level = 95, period = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.