stl(time.series, ss.window = NULL, ss.degree = 0, ss.robust = F, s.window = NULL, s.degree = 2, fc.window = NULL, fc.degree = 2, control, ...)
specs.stl can be used to recall the specifications used to compute an object of class stl. Some of these values may be slightly different from the input values given the algorithm requirements.
stl carries out a decomposition of a time series into frequency components of variation by a sequence of loess smoothings. In phase one, the backfitting algorithm produces a seasonal component with a period equal to that of frequency(time.series). The subseries of this component are smooth though time; that is, for a monthly series with period 12, the January values are smooth, the February values are smooth and so forth. But the values by design do not have to be smooth from one month to the next. If this is desired, the phase-one seasonal is replaced by a smoothing of it in the first step of phase two. The seasonal is subtracted from time.series and other frequency components are computed sequentially. stl is a replacement for the sabl procedure.
stl(co2, ss.window = 17, fc.window = c(101, 25), fc.degree = c(1, 2))# produces the following output: Call: stl(time.series = co2, ss.window = 17, fc.window = c(101, 25), fc.degree = c(1, 2)) Frequency components of stl object: fc.101 fc.25 seasonal remainder