Displaying 2 results from an estimated 2 matches for "zlag".
Did you mean:
flag
2010 Jul 31
1
Lags and Differences of zoo Objects
Hi,
I'm struggling to understand the documentation.
?lag.zoo
x - a "zoo" object.
k, lag - the number of lags (in units of observations). Note the sign of k
behaves as in lag.
differences - an integer indicating the order of the difference.
What does the above line actually mean? I've tried a few settings on sample
data but can't figure out what it is doing.
x <-
2012 Jul 25
3
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: