[R] lagged variables

saraberta sara.bertapelle at hotmail.it
Wed Jul 25 10:10:12 CEST 2012


hi guys, 
i have some trouble in creating lagged variables to use as external
regressors.
i'm trying to use lag(x) but it gives me as result the same time series (x),
adding this part at the end:

attr(,"tsp")
[1]    0 2323    1

where do i wrong?are there other functions to be used?
thanks
sara




--
View this message in context: http://r.789695.n4.nabble.com/lagged-variables-tp4637734.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list