Learn R Programming

ConNEcT (version 0.7.27)

lagthemats: Lag a matrix

Description

Lag a matrix

Usage

lagthemats(data, lag)

Arguments

data

Binary time-points-by-variable matrix

lag

Non-negative integer indicating the number of time points the second variable is lagged (default 0)

Value

laggeddata Matrix in which all variables are lagged lag time points

Examples

Run this code
# NOT RUN {
lagthemats(cbind(c(1,0,1,0,1,0,1),c(1,1,1,1,0,0,0)),lag=2)


# }

Run the code above in your browser using DataLab