lrcov_est: Long-run covariance estimator

View source: R/lrcov.R

lrcov_estR Documentation

Long-run covariance estimator

Description

Use bartlett kernel to estimate long-run covariance where the bandwidth determined Andrews (1991, Eq. (6.2) and (6.4)). Part of the function adapted from the "bwAndrews" function in "sandwich" package

Usage

lrcov_est(x, y = NULL, type = 0)

Arguments

y

= NULL if computing the long run variance of x only

type

= 0 (default) for long-run covariance or 1 for one-sided long-run variance


zhan-gao/LasForecast documentation built on Sept. 18, 2024, 9:40 p.m.