lrvarbart: Long-run variance using Bartlett kernel

Description Usage Arguments Value Author(s) References Examples

View source: R/lrvarbart.R

Description

Function returns the long-run variance of a time series, relying on the Bartlett kernel. The window size of the kernel is the cube root of the sample size.

Usage

1

Arguments

x

a (T x 1) vector containing the time series over period T

Value

lrv

long-run variance

return

bandwidth size of the window

Author(s)

Andrea Bucci

References

Hamilton J. D. (1994), Time Series Analysis. Princeton University Press; Tsay R.S. (2005), Analysis of Financial Time Series. John Wiley & SONS

Examples

1
2

starvars documentation built on Jan. 18, 2022, 1:08 a.m.