realizedCov: Realized Covariance

Description Usage Arguments Details Value Author(s) Examples

Description

Calculate realized covariance

Usage

1

Arguments

R

xts object of asset returns

n

number of periods used to calculate realized volatility

Details

Realized covariance is calculated using the previous n periods.

Value

xts object of realized covariance

Author(s)

Ross Bennett

Examples

1
2
3
4
5
data(crsp_weekly)
R <- largecap_weekly[, 1:2]
# Calculate realized covariance
realizedCovariance <- realizedCov(R, 10)
head(realizedCovariance)

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

Related to realizedCov in GARPFRM...