https://github.com/cran/ftsa
Raw File
Tip revision: 4fd6572dad9afff2a11b15b927683e9baf00a87e authored by Han Lin Shang on 14 October 2010, 00:00:00 UTC
version 2.0
Tip revision: 4fd6572
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