https://github.com/cran/ftsa
Raw File
Tip revision: 7048be9009dbe3939c14cde83422623c413eeb26 authored by Han Lin Shang on 18 May 2020, 03:50:11 UTC
version 5.7
Tip revision: 7048be9
smdape.R
smdape <- function(forecast, true)
{
     if (length(forecast) != length(true))
         stop("SMDAPE: the lengths of input vectors must be the same.")
     err = median(200 * abs(true - forecast) / (true + forecast))
     return(round(err, 6))
}
back to top