https://github.com/cran/ftsa
Raw File
Tip revision: 01503d05f0e8a579157a156ce4bf20791adfdab9 authored by Han Lin Shang on 11 September 2023, 13:10:02 UTC
version 6.3
Tip revision: 01503d0
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