realizedVol: Realized Volatility

Description Usage Arguments Details Value Author(s) Examples

Description

Calculate realized volatility

Usage

1

Arguments

R

xts object of asset returns

n

number of periods used to calculate realized volatility

Details

Realized volatility is defined as the standard deviation of using the previous n periods.

Value

xts object of realized volatility

Author(s)

Ross Bennett

Examples

1
2
3
4
5
data(crsp_weekly)
R <- largecap_weekly[, 1]
# Calculate realized volatility
realizedVolatility <- realizedVol(R[,1], 10)
head(realizedVolatility)

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

Related to realizedVol in GARPFRM...