https://github.com/cran/ftsa
Raw File
Tip revision: c2f8f5dad0723f8b0e85fd9fe7602962777136ef authored by Han Lin Shang on 04 June 2010, 13:24:11 UTC
version 1.8
Tip revision: c2f8f5d
mdae.R
mdae = function(forecast, true)
{
    if (length(forecast) != length(true))
        stop("MDAE: the lengths of input vectors must be the same.")
    err = median(abs(true - forecast))
    return(round(err, 4))
}

back to top