swh:1:snp:3a44eb759780145deea094ac2a25c5049546a085
Raw File
Tip revision: e61668cf90f3c06dfbda51f269d319ba5ee9d365 authored by Han Lin Shang on 12 September 2009, 13:11:01 UTC
version 1.0
Tip revision: e61668c
me.R
me = function(forecast, true)
{
   if (length(forecast) != length(true))
       stop("ME: the lengths of input vectors must be the same.")
   err = mean(forecast - true)
   return(round(err, 6))
}
back to top