HAC corrected variance in NP test

For technical questions regarding estimation of single equations, systems, VARs, Factor analysis and State Space Models in EViews. General econometric questions and advice should go in the Econometric Discussions forum.

Moderators: EViews Gareth, EViews Moderator

kiber_master
Posts: 94
Joined: Fri Sep 23, 2011 3:56 am

HAC corrected variance in NP test

Postby kiber_master » Tue Dec 11, 2012 8:21 am

Hello!

I've noticed that in PP, ERS and NP unit root tests HAC corrected variance (f0) is calculated by the same formulae. But if i have missing observations in series, PP and ERS give me the same result, but NP differs from them. Why does it happen?

Open attached workfile, execute the following code:
freeze(t1) y.uroot(pp, const, hac=bt)
freeze(t2) y.uroot(ers, const, hac=bt)
freeze(t3) y.uroot(ng, const, hac=bt)
Attachments
testNG.WF1
(16.53 KiB) Downloaded 296 times

EViews Glenn
EViews Developer
Posts: 2682
Joined: Wed Oct 15, 2008 9:17 am

Re: HAC corrected variance in NP test

Postby EViews Glenn » Tue Dec 11, 2012 2:58 pm

Same issue as in the other cases. The NP code is using a smaller sample because it is doing sample exclusions early so it doesn't use the same pre-sample values for the transformation.

kiber_master
Posts: 94
Joined: Fri Sep 23, 2011 3:56 am

Re: HAC corrected variance in NP test

Postby kiber_master » Tue Dec 11, 2012 11:05 pm

But it should, isn't it?
I don't understand why it shows only when I have missing observations.

EViews Glenn
EViews Developer
Posts: 2682
Joined: Wed Oct 15, 2008 9:17 am

Re: HAC corrected variance in NP test

Postby EViews Glenn » Wed Dec 12, 2012 11:27 am

As I said in the other thread (http://forums.eviews.com/viewtopic.php?f=4&t=7090) the various unit root tests handle the samples slightly differently. The presence of the missing values isn't the issue, it's the fact that the NP test uses the sample after we've done differences on the detrended series while the others use a sample which doesn't lose the differencing observation. It's not ideal, but both estimators are consistent.

Also as noted in the other thread, I'm going to line these up so that they use the same rule, but I don't want to do it mid-release.

kiber_master
Posts: 94
Joined: Fri Sep 23, 2011 3:56 am

Re: HAC corrected variance in NP test

Postby kiber_master » Thu Dec 13, 2012 5:33 am

Sorry, I thought you didn't understand me. If in new release everything will be consistent, I should stop to ask such questions.

Thank you.

EViews Glenn
EViews Developer
Posts: 2682
Joined: Wed Oct 15, 2008 9:17 am

Re: HAC corrected variance in NP test

Postby EViews Glenn » Thu Dec 13, 2012 10:20 am

No problem. It's useful having this kind of discussion as it highlights the fact that there are a lot of choices that go into computing something like the NP test and that there may be small differences across various approaches.


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 2 guests