View source: R/main_function.R
duplicateMatrix | R Documentation |
Duplicates the original data matrix to create a lagged predictor matrix for VAR estimation.
duplicateMatrix(data, p)
data |
A numeric matrix with time series data (observations in rows). |
p |
Integer. The order of the VAR model (number of lags). |
A numeric matrix with duplicated columns corresponding to lagged observations.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.