https://github.com/cran/ftsa
Raw File
Tip revision: a6b54799f17566fd17a6bee02a0ac060d1b424b3 authored by Han Lin Shang on 15 June 2020, 11:20:07 UTC
version 5.8
Tip revision: a6b5479
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