Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/calculateMdAPE.R
Generates MdAPE accuracy tables and plots.
1 | calculateMdAPE(af, sort = FALSE, digits = 3)
|
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 MdAPE rank across all available horizons. |
digits |
number of digits after the dot used to output MdAPE; if digits=NA, MdAPEs and ranks are not rounded. |
Calculates MdAPEs 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 MdAPE
dataframe with MdAPE ranks
ggplot2 object showing accuracy vs horizon for MdAPE
Cuong Sai, Andrey Davydenko, and Maxim Shcherbakov.
calculateMAPE
, calculateAvgRelMAE
,
calculateSMAPE
, calculateMASE
1 2 3 4 5 | af <- createAFTS(example1_ts, example1_fc)
acc <- calculateMdAPE(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.