powered by
Compute the Parzen kernel to obtain consistent estimate of long-run variance.
Parzen_uni(e,v)
Return the consistent estimate of long-run variance, that PP and KPSS tests require. This procedure handles single time series only.
A univariate time series for computing consistent long-run variance, normally, regression residuals.
Number of lag terms used to compute the long-run variance.
Ho Tsung-wu <tsungwu@ntnu.edu.tw>, College of Management, National Taiwan Normal University.
Brillinger, David R. (1981) Time Series Data Analysis and Theory. San Francisco, CA: Holden-Day.
data(macro) y=macro[,"INF"] e=y-mean(y) Parzen_uni(e,v=15)
Run the code above in your browser using DataLab