SPC_Bartlett | R Documentation |
Compute the Bartlett kernel proposed by Sul, Phillips and Choi (2003) to obtains consistent estimate of long-run variance.
SPC_Bartlett(e,v)
e |
data that needs to compute consistent long-run variance, normally, regression residuals. |
v |
Number of lag terms to use when computing the long-run variance. |
Return the consistent estimate of long-run variance, Bartlett kernel proposed by Sul, Phillips and Choi (2003) .
Ho Tsung-wu <tsungwu@ntnu.edu.tw>, College of Management, National Taiwan Normal University.
Carrion-i-Silvestre, J. L. and Sanso, A. (2006) A guide to the computation of stationarity tests.Empirical Economics, 31(2), 433-448.
Carrion-i-Silvestre, J. L. and Sanso, A. (2007) The KPSS test with two structural breaks. Spanish Economic Review, 9(2), 105-127.
Sul, D., Phillips, P.C.B., and Choi, C.Y.(2005) Prewhitening Bias in HAC Estimation. Oxford Bulletin of Economics and Statistics, 67(4), 517-546.
data(macro)
y=macro[,"INF"]
e=y-mean(y)
SPC_Bartlett(e,v=15)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.