shift(VarVect, shiftBy, reminder = TRUE)
GroupVar
and time variable before running shift
.shift
function:
http://ctszkin.com/2012/03/11/generating-a-laglead-variables/.shift
a function for creating lag and lead variables, including for
time-series cross-sectional data.
slide