https://github.com/cran/ftsa
Tip revision: 592f61af0e8cfd418ea2dfc4fb50aaa23bd972cc authored by Han Lin Shang on 03 January 2019, 07:30:06 UTC
version 5.3
version 5.3
Tip revision: 592f61a
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))
}