View source: R/create_lags_RV.R
create_lags_RV | R Documentation |
Creates a matrix of order 3 containing Daily, Weekly, Monthly returns for Realized Volatilities. Can include or exclude original series, and trim the NAs in the start of the sample. It should be used for HVARs.
create_lags_RV(y, include.original = TRUE, trim = TRUE)
y |
vector or matrix to lag |
include.original |
logical, if TRUE the original series are left inside the output matrix. |
trim |
logical, if TRUE the initial NAs due to the lag gets trimmed |
the lagged vector or matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.