create_lags_RV: Lags creation: Daily, Weekly, Monthly aggregation for...

View source: R/create_lags_RV.R

create_lags_RVR Documentation

Lags creation: Daily, Weekly, Monthly aggregation for Realized Volatilities

Description

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.

Usage

create_lags_RV(y, include.original = TRUE, trim = TRUE)

Arguments

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

Value

the lagged vector or matrix


Marga8/HDGCvar documentation built on May 25, 2024, 11:12 a.m.