Re: [R] Simulate AR(1) starting from X number?

2012-01-09 Thread Rolf Turner
On 09/01/12 16:32, jfca283 wrote: Yes, it's work for my class. Well, this list is ***NOT*** for giving help with homework. However --- to get you started, read the help for arima.sim() a bit more carefully, and look at what it says about the argument n.start. You are miss-using this

[R] Simulate AR(1) starting from X number?

2012-01-08 Thread jfca283
Hi i run arima.sim(n=100,n.start=9,list(ar=c(0.4)),sd=sqrt(3)), but i need that the firs value be 9, i mean x_(-1). Thanks -- View this message in context: http://r.789695.n4.nabble.com/Simulate-AR-1-starting-from-X-number-tp4276550p4276550.html Sent from the R help mailing list archive at

Re: [R] Simulate AR(1) starting from X number?

2012-01-08 Thread Rolf Turner
On 09/01/12 08:45, jfca283 wrote: Hi i run arima.sim(n=100,n.start=9,list(ar=c(0.4)),sd=sqrt(3)), but i need that the firs value be 9, i mean x_(-1). Thanks Is this homework? cheers, Rolf Turner __ R-help@r-project.org mailing list

Re: [R] Simulate AR(1) starting from X number?

2012-01-08 Thread jfca283
Yes, it's work for my class. -- View this message in context: http://r.789695.n4.nabble.com/Simulate-AR-1-starting-from-X-number-tp4276550p4277462.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list