[R] arima forecast without the first order of auto-regressor

2012-09-17 Thread lornyi
Hi, I want to predict using airma, but I want to predict using t-2 or t-3, instead of t-1 right now the arima() function doesn't allow me to do that, it will alwasy return with variable t-1 , what is the way to skip that variable? thanks regards -- View this message in context:

[R] Lag() and lag()

2012-01-09 Thread lornyi
lag is a very confusing function i try to plot lag(x,-h) and y , the results are the same figures for all the h lags. then i saw online people use lag(x,-h) as xreg in arima that won't work in my eyes if lag function is consistent, isnce it returns the same value for all the lags i don't know in

Re: [R] Lag() and lag()

2012-01-09 Thread lornyi
besides I use Lag(x,h) to plot the lagged ts graph, it is very usefful but when doing the regression(arima, xreg=), i am really not sure if I should use lag(x,-h) or Lag(x,h) from online i see people use lag(x,-h), but i didnt believe that, bc I can't plot the lagged graph using this function.

[R] problem on plotting ts data

2012-01-04 Thread lornyi
Hi, i try to plot ts data on x-y coordiante I want my data to be points, but somehow it always comes out with lines and # linked bwtween data, i used plot(lag(x,-9),y,type=p), x and y are time series data is there anyway to remove those lines? Thanks a lot -- View this message in context:

Re: [R] problem on plotting ts data

2012-01-04 Thread lornyi
thanks, it works! -- View this message in context: http://r.789695.n4.nabble.com/problem-on-plotting-ts-data-tp4261865p4262179.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list