https://github.com/cran/ftsa
Raw File
Tip revision: 7bdad6c68655052ae1f5bb6df541ead6a839543b authored by Han Lin Shang on 12 November 2015, 12:58:19 UTC
version 4.5
Tip revision: 7bdad6c
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