rv.avg {realized}R Documentation

Realized Variance: Average Subsample

Description

Realized Variance using average subsample.

Usage

rv.avg(x,period, align.period = 1, cts = TRUE, makeReturns = FALSE, ...)

Arguments

x RealizedObject or TimeSeries for S+
period Sampling period
align.period Align the returns to this period first
cts Create calendar time sampling if a non realizedObject is passed
makeReturns Prices are passed make them into log returns
... ...

Value

Realized variance using average subsample.

Author(s)

Scott Payseur <spayseur@u.washington.edu>

References

L. Zhang, P.A Mykland, and Y. Ait-Sahalia. A tale of two time scales: Determining integrated volatility with noisy high-frequency data. Journal of the American Statistical Association, 2005.

See Also

rv.avg, rRealizedVariance

Examples

 
data(msft.real.cts)

#
# Average subsampled realized variance for CTS aligned at one second returns at 
# 600 subgrids (10 minutes).
#
rv.avg(x = msft.real.cts[[1]], period = 600)

#
# Average subsampled realized variance for CTS aligned at one minute returns at 
# 5 subgrids (5 minutes).
#
rv.avg(x = msft.real.cts[[1]], period = 5, align.period=60)


[Package realized version 0.81 Index]