[R] s.window in stl()

Susana Barbosa susanabarbosa at novalis.fc.up.pt
Wed Oct 9 14:55:00 CEST 2002


Hi,

I think s.window is the span is lags of loess window. 
Loess centers a window for each time and fits a line by weighted 
least-squares (more weight is given to observations close to the middle of 
the window); the residual (vertical) distance from the line to each point in 
the window is determined. The outliers (points with large residuals) are then 
downweighted and the line is re-estimated; this process is iterated a few 
times. 

So with monthly data you don't have to use s.window=12 (and notice it must be 
odd!)

Hope it helps


Susana
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list