calc_MAPE: Functions for calculating average accuracy of projections.

View source: R/calc_MAPE.R

calc_MAPER Documentation

Functions for calculating average accuracy of projections.

Description

Functions for calculating average accuracy of projections.

Usage

calc_MAPE(obs, pred)

calc_MALPE(obs, pred)

calc_MAPER(obs, pred, lambda = 0.5)

Arguments

obs

numeric vector of true observed values

pred

numeric vector of forecasted values

lambda

power parameter for MAPE-R calculation

Value

forecast accuracy metric

Examples

x <- rpois(10, 3) + 1
y <- rpois(10, 3) + 1

calc_MAPE(x,y)
calc_MALPE(x,y)
calc_MAPER(x,y)


nmmarquez/smoothHP documentation built on April 12, 2022, 8:04 a.m.