Learn R Programming

PMmisc (version 0.1.0)

flead: 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

flead(x,n)

Arguments

x

:a vector

n

:number of lead periods

Examples

Run this code
# NOT RUN {
flead(mtcars[,2],3)
# }

Run the code above in your browser using DataLab