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