https://github.com/cran/ftsa
Raw File
Tip revision: 830b729d55110b055fa2e622ff79e7b0aeb8e6c7 authored by Han Lin Shang on 15 March 2010, 09:03:37 UTC
version 1.6
Tip revision: 830b729
me.R
me = function(forecast, true)
{
   if (length(forecast) != length(true))
       stop("ME: the lengths of input vectors must be the same.")
   err = mean(true - forecast)
   return(round(err, 6))
}
back to top