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

Rolf Turner rolf.turner at xtra.co.nz
Mon Jan 9 03:39:20 CET 2012


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



More information about the R-help mailing list