https://github.com/cran/ftsa
Tip revision: ad992279e8b07a246143211f31cfd84863fae1a8 authored by Shang H on 21 February 2013, 07:52:54 UTC
version 3.7
version 3.7
Tip revision: ad99227
mae.R
mae = function(forecast, true)
{
if (length(forecast) != length(true))
stop("MAE: the lengths of input vectors must be the same.")
err = mean(abs(true - forecast))
return(round(err, 6))
}