Description Usage Arguments Details Value Author(s) References See Also Examples
View source: R/calculateMASE.R
Generates MASE accuracy tables and plots.
1 | calculateMASE(ts, af, sort = FALSE, digits = 3)
|
ts |
dataframe containing time series actuals needed to calculate the benchmark MAE
for each time series, this dataframe needs to be formatted using the Time Series Table
Schema (TSTS), use |
af |
dataframe containing forecast data formatted using the Actual and Forecast Table
Schema (AFTS), use |
sort |
if TRUE, sorts accuracy results according to the average MASE rank across all available horizons. |
digits |
number of digits after the dot used to output MASE; if digits=NA, MASEs and ranks are not rounded. |
Calculates MASEs for each horizon and each method contained in af
.
Outputs accuracy tables and plots.
The input dataframe af
can be created using createAFTS()
.
a list with the following variables:
dataframe with accuracy table for MASE
dataframe with MASE ranks
ggplot2 object showing accuracy vs horizon for MASE
Cuong Sai, Andrey Davydenko, and Maxim Shcherbakov.
Hyndman, R.J. and Koehler, A.B. (2006). Another look at measures of forecast accuracy. International Journal of Forecasting, 22(4), 679-688.
calculateAvgRelMAE
, calculateSMAPE
, calculateMAPE
1 2 3 4 5 6 | ts <- example1_ts
af <- createAFTS(example1_ts, example1_fc)
acc <- calculateMASE(ts, af)
acc$accuracy
acc$rank
acc$plot
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.