calc_MAPE | R Documentation |
Functions for calculating average accuracy of projections.
calc_MAPE(obs, pred) calc_MALPE(obs, pred) calc_MAPER(obs, pred, lambda = 0.5)
obs |
numeric vector of true observed values |
pred |
numeric vector of forecasted values |
lambda |
power parameter for MAPE-R calculation |
forecast accuracy metric
x <- rpois(10, 3) + 1 y <- rpois(10, 3) + 1 calc_MAPE(x,y) calc_MALPE(x,y) calc_MAPER(x,y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.