swh:1:snp:3a44eb759780145deea094ac2a25c5049546a085
Tip revision: af64574d606cf05040ab28b60a3126c478c47094 authored by Han Lin Shang on 13 September 2012, 05:58:27 UTC
version 3.5
version 3.5
Tip revision: af64574
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))
}