[R] Lag() and lag()

lornyi jia_yilan at hotmail.com
Tue Jan 10 04:29:46 CET 2012


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.

so i think i maybe should use Lag(x,h) as xreg





--
View this message in context: http://r.789695.n4.nabble.com/Lag-and-lag-tp4280962p4280973.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list