mape: Mean Absolute Percentage Error

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/mape.R

Description

This criterion is frequently used in business forecasting. See Wikipedia article https://en.wikipedia.org/wiki/Mean_absolute_percentage_error.

Usage

1
mape(yTest, yHat)

Arguments

yTest

test data

yHat

predictions of the test data

Details

tba

Value

mean percentage absolute errors

Author(s)

A. I. McLeod

See Also

gcv, mse, mae, smape

Examples

1
2
#E(Z)=sqrt(2/pi), Z~abs(N(0,1))
mape(abs(rnorm(10)), rep(sqrt(2/pi),10))

Example output

[1] 92.03744

gencve documentation built on May 29, 2017, 7:12 p.m.