Learn R Programming

gencve (version 0.3)

smape: Mean Absolute Percentage Error

Description

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

Usage

smape(yTest, yHat)

Arguments

yTest
test data
yHat
predictions of the test data

Value

mean percentage absolute errors

Details

tba

See Also

gcv, mse, mape

Examples

Run this code
smape(abs(rnorm(10)), rep(sqrt(2/pi),10))

Run the code above in your browser using DataLab