https://github.com/cran/ftsa
Tip revision: 6ba39a903cffe1ddf23018649f1682042fdd2db3 authored by Han Lin Shang on 16 May 2010, 16:19:56 UTC
version 1.7
version 1.7
Tip revision: 6ba39a9
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))
}