Long-run variance and KPSS testing
Posted: Tue Mar 21, 2017 8:39 am
Hi,
I am doing some unit root testing using the KPSS test.
When selecting the HAC variance in this test I can select the Bartlett window and set the user specified value of of the bandwidth to 1. This will use the autocovariance at lags zero (i.e. the varaince) and one (the first autocovariance) in the computation of the test. The formula for K in equation (37.21) in the EViews 9.5 documentation hence seem to be K(j/(l+1)). The command for this would be:
y.uroot(kpss, hac=bt, bw=1)
However, if I want to use the lrvar command to get the long-run variance that is used in the KPSS test, then I need to set the bandwidth to 2 in order to replicate the variance estimate. Hence, it seems as if the calculation of the kernel now uses K(j/l). The command for this would be:
y.lrvar(bw=2)
Have I understood this correctly? If so, how am I to think of this aspect logically?
Best,
Kristian
I am doing some unit root testing using the KPSS test.
When selecting the HAC variance in this test I can select the Bartlett window and set the user specified value of of the bandwidth to 1. This will use the autocovariance at lags zero (i.e. the varaince) and one (the first autocovariance) in the computation of the test. The formula for K in equation (37.21) in the EViews 9.5 documentation hence seem to be K(j/(l+1)). The command for this would be:
y.uroot(kpss, hac=bt, bw=1)
However, if I want to use the lrvar command to get the long-run variance that is used in the KPSS test, then I need to set the bandwidth to 2 in order to replicate the variance estimate. Hence, it seems as if the calculation of the kernel now uses K(j/l). The command for this would be:
y.lrvar(bw=2)
Have I understood this correctly? If so, how am I to think of this aspect logically?
Best,
Kristian