Description Usage Arguments Details Value Author(s) References See Also Examples
View source: R/calculateAvgRelMAE.R
Generates AvgRelMAE accuracy tables and plots.
1 | calculateAvgRelMAE(af, bench, sort = FALSE, digits = 3)
|
af |
dataframe with forecast data formatted using the Actual and Forecast
Table Schema (AFTS), use |
bench |
method_id for the benchmark method |
sort |
if TRUE, sorts accuracy results according to the average AvgRelMAE rank across all available horizons. |
digits |
number of digits after the dot used to output AvgRelMAE; if digits=NA, AvgRelMAEs and ranks are not rounded. |
Calculates AvgRelMAEs (Davydenko and Fildes, 2013) 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 AvgRelMAE
dataframe with MAEs, RelMAE, logRelMAE for each time series for each horizon
dataframe with AvgRelMAE ranks
ggplot2 object showing accuracy vs horizon for AvgRelMAE
ggplot2 object with boxplots showing logRelMAEs for each method
Cuong Sai, Andrey Davydenko, and Maxim Shcherbakov.
Davydenko, A., & Fildes, R. (2013). Measuring Forecasting Accuracy:The Case of Judgmental Adjustments to Sku-Level Demand Forecasts.International Journal of Forecasting, 29(3), 510-512.
Davydenko, A., & Fildes, R. (2016). Forecast Error Measures: Critical Review and Practical Recommendations. In Business Forecasting: Practical Problems and Solutions. John Wiley & Sons Inc.
calculateMAPE
, calculateSMAPE
, calculateMASE
1 2 3 4 5 | af <- createAFTS(example1_ts, example1_fc)
acc <- calculateAvgRelMAE(af, "A")
acc$accuracy
acc$rank
acc$plot
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.