At last nights meeting, time series analysis came up (including
seasonality). There's a lot of ground that can be covered on this
subject, but to start off, a quick example might be worthwhile.
If you download the "stats" package:
http://stat.ethz.ch/R-manual/R-devel/library/stats/html/00Index.html
You'll get the HoltWinters routine. The current example of its use
(from typing help(HoltWinters) at the R prompt) is given below. Give
it a try and you'll see plots with seasonality and trends. Later,
we can go over the ARIMA issues on the noise terms and the "trasfer
function" thing.
Bill
==============================
require(graphics)
## Seasonal Holt-Winters
(m <- HoltWinters(co2))
plot(m)
plot(fitted(m))
(m <- HoltWinters(AirPassengers, seasonal = "mult"))
plot(m)
## Non-Seasonal Holt-Winters
x <- uspop + rnorm(uspop, sd = 5)
m <- HoltWinters(x, gamma = FALSE)
plot(m)
## Exponential Smoothing
m2 <- HoltWinters(x, gamma = FALSE, beta = FALSE)
lines(fitted(m2)[,1], col = 3)