Try this:
# two simulated series
set.seed(123)
ts.sim <- arima.sim(list(order = c(1,1,0), ar = 0.7), n = 70)
ts.sim <- ts(c(ts.sim), start = 1940)
ts.sim2 <- arima.sim(list(order = c(1,1,0), ar = 0.7), n = 12*70)
ts.sim2 <- ts(c(ts.sim2), start = 1940, freq = 12)
# plot
plot(ts.sim2, type = "l",
I could use some advice.
I've got 2 time series. Both cover approximately the same period of
time (ie, 1940 to 2009). But one series has annual data and the other
has monthly data. One refers to university enrollment; the other to
unemployment rates. Both are currently in the same data frame.
I'
2 matches
Mail list logo