[R] arima.sim with a periodic model

From: Philip <philip_at_sctkjeld.dk>
Date: Mon 01 Jan 2007 - 13:12:34 GMT

Hi all.

I have a periodiv arma model and I want to simulate it. In S-plus, the following works for me:

phi <- 0.9
theta <- 0
p <- 1 # period
model <- list(ar=phi, ma=theta, period=p) Yt <- arima.sim(model, n=250)

How do I do something like this "period=12" in R? I read help(arima.sim) but it doesn't tell.

Thanks! Philip.

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Tue Jan 02 04:10:10 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Mon 01 Jan 2007 - 17:30:29 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.