powered by
Duplicates the original data matrix to create a lagged predictor matrix for VAR estimation.
duplicateMatrix(data, p)
A numeric matrix with duplicated columns corresponding to lagged observations.
A numeric matrix with time series data (observations in rows).
Integer. The order of the VAR model (number of lags).