cv.lead {YRmisc}R Documentation

Create a lead variable

Description

Create a lead variable, with a choice of lead periods. The lead variable can be used to test lead effects between variables.

Usage

cv.lead(x,n)

Arguments

x

:a vector

n

:number of lead periods

Examples

cv.lead(mtcars[,2],3)
data.frame(mtcars,cv.lead(mtcars[,3], 3))

[Package YRmisc version 0.1.6 Index]