interval_coverage() computes the proportion (between 0 and 1) of actual
values that fall within the central level% interval of the distribution
(bounds inclusive). For well calibrated intervals, it is close to
level / 100.
winkler_score(.dist, .actual, level = 95, na.rm = TRUE, ...)
pinball_loss(.dist, .actual, level = 95, na.rm = TRUE, ...)
scaled_pinball_loss(
.dist,
.actual,
.train,
level = 95,
na.rm = TRUE,
demean = FALSE,
.period,
d = .period == 1,
D = .period > 1,
...
)
interval_coverage(.dist, .actual, level = 95, na.rm = TRUE, ...)
interval_accuracy_measuresThe distribution of fitted values from the model, or forecasted values from the forecast.
A vector of responses matching the fitted values
(for forecast accuracy, new_data must be provided).
The level of the forecast interval, as a percentage (e.g.
95 for a 95% interval). A single level is used for each measure.
Remove the missing values before calculating the accuracy measure
Additional arguments for each measure.
A vector of responses used to train the model
(for forecast accuracy, the orig_data must be provided).
Should the response be demeaned (MASE)
The seasonal period of the data (defaulting to 'smallest' seasonal period). from a model, or forecasted values from the forecast.
Should the response model include a first difference?
Should the response model include a seasonal difference?