On Wed, 16 May 2001, Francisco Cribari wrote:
>
> I am running R 1.2.2 under Linux. When using the function stl in
> the ts library, how can I save the seasonal component? What I
> would like was something like:
>
> library(ts)
> data(nottem)
> data.stl <- stl(nottem, "per")
> x <- data.stl$sea
>
> This what I get:
>
> > x
> NULL
It's in the manual ...
Value:
An object of class `"stl"' with components
time.series: a multiple time series with columns `seasonal', `trend'
and `remainder'.
...
data.stl$time.series[, "seasonal"]
--
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._