getCor: EWMA Correlation

Description Usage Arguments Author(s) Examples

Description

Extract the correlation of two assets from an mvEWMAcor object

Usage

1
getCor(EWMA, assets)

Arguments

EWMA

an EWMA object created by EWMA

assets

character vector or numeric vector. The assets can be specified by name or index.

Author(s)

Ross Bennett and Thomas Fillebeen

Examples

1
2
3
4
5
6
7
data(crsp_weekly)
mvR <- largecap_weekly[,1:4]
lambda <- 0.94
initialWindow <- 150
cor_mv <- EWMA(mvR, lambda, initialWindow, type="correlation")
# Extract the estimated correlation between ORCL and MSFT
tail(getCor(cor_mv, assets=c("ORCL", "MSFT")))

GARPFRM documentation built on May 2, 2019, 5:45 p.m.

Related to getCor in GARPFRM...