https://github.com/cran/ftsa
Raw File
Tip revision: 9bf6f03951ba62e84fc9c6e1728865f199ce4bb0 authored by Han Lin Shang on 01 November 2018, 18:40:03 UTC
version 5.2
Tip revision: 9bf6f03
sse.R
sse <- function(forecast, true) 
{
    if (length(forecast) != length(true)) 
        stop("SSE: the lengths of input vectors must be the same.")
    err = sum((true - forecast)^2)
    return(round(err, 6))
}
back to top