Parzen_uni | R Documentation |
Compute the Parzen kernel to obtain consistent estimate of long-run variance.
Parzen_uni(e,v)
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. |
Return the consistent estimate of long-run variance, that PP and KPSS tests require. This procedure handles single time series only.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.