powered by
Create a lead variable, with a choice of lead periods. The lead variable can be used to test lead effects between variables.
flead(x,n)
:a vector
:number of lead periods
# NOT RUN { flead(mtcars[,2],3) # }
Run the code above in your browser using DataLab