https://github.com/cran/ftsa
Tip revision: 2be2cac4679ad78e8ae44283f0200a83b4a2dab9 authored by Han Lin Shang on 09 November 2010, 10:17:30 UTC
version 2.1
version 2.1
Tip revision: 2be2cac
mdse.R
`mdse` <- function(forecast, true)
{
if (length(forecast) != length(true))
stop("MSE: the lengths of input vectors must be the same.")
err = median((true - forecast)^2)
return(round(err, 4))
}