Learn R Programming

ardl.nardl (version 1.3.0)

lagm: Lag a matrix

Description

Take the lag of a variable using the specified number of lag(s).

Usage

lagm(x, k)

Value

x

dimentional matrix with k

Arguments

x

a matrix object

k

number of lags

Examples

Run this code
x <- cbind(x1 = c(23, 45, 56, 78, 98, 21, 17),
            x2 = c(3, 4, 6, 7, 2, 9, 17))
lagm(x, k = 3)

Run the code above in your browser using DataLab