powered by
Lagging variables for use in estimate functional
lag(vector, lag = 1)
vector to be lagged
number of lags
lagged vector of same length with NAs at beginning
# NOT RUN { #lag example vector by one lag lag(c(1,2,3)) #lag example vector by two lags lag(c(1,2,3,4),lag=2) # }
Run the code above in your browser using DataLab