lagthemats {ConNEcT}R Documentation

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

lagthemats(cbind(c(1,0,1,0,1,0,1),c(1,1,1,1,0,0,0)),lag=2)



[Package ConNEcT version 0.7.27 Index]