Skip to content
Prev 301172 / 398503 Next

lagged variables

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.