Bartlett_uni: Bartlett Kernel for Consistent Estimate of Long-run Variance

Bartlett_uniR Documentation

Bartlett Kernel for Consistent Estimate of Long-run Variance

Description

Compute the Bartlett kernel to obtain consistent estimate of long-run variance,univariate time series only.

Usage

 Bartlett_uni(e,v)

Arguments

e

A univariate time series for computing consistent long-run variance, normally, regression residuals.

v

Number of lag terms used to compute the long-run variance.

Value

Return the consistent estimate of long-run variance, that PP and KPSS tests require. This procedure handles single time series only.

Author(s)

Ho Tsung-wu <tsungwu@ntnu.edu.tw>, College of Management, National Taiwan Normal University.

References

Brillinger, David R. (1981) Time Series Data Analysis and Theory. San Francisco, CA: Holden-Day.

Examples

data(macro)
y=macro[,"INF"]
e=y-mean(y)
Bartlett_uni(e,v=15)

COINT documentation built on Sept. 9, 2025, 5:51 p.m.

Related to Bartlett_uni in COINT...