powered by
Lag a matrix
lagthemats(data, lag)
Binary time-points-by-variable matrix
Non-negative integer indicating the number of time points the second variable is lagged (default 0)
laggeddata Matrix in which all variables are lagged lag time points
laggeddata
lag
# NOT RUN { lagthemats(cbind(c(1,0,1,0,1,0,1),c(1,1,1,1,0,0,0)),lag=2) # }
Run the code above in your browser using DataLab