Hello!
In your documentation I found that HAC corrected variance in PP, ERS unit root tests is calculated using Dickey-Fuller regression, so it should be the same in both tests for series with identical values and the same sample. But when I calculate this tests and set sample not from 1st point, EViews gives me different HAC corrected variance in PP and ERS for Kernel spectral estimation methods. Why? Is it a mistake in documentation, or in calculation?
Thank you.
P.S.: Tell me, if you need an example
HAC corrected variance in unit root tests
Moderators: EViews Gareth, EViews Moderator
-
kiber_master
- Posts: 94
- Joined: Fri Sep 23, 2011 3:56 am
-
EViews Glenn
- EViews Developer
- Posts: 2682
- Joined: Wed Oct 15, 2008 9:17 am
Re: HAC corrected variance in unit root tests
We're going to need an example. I'm not quite certain what you are saying here...
-
kiber_master
- Posts: 94
- Joined: Fri Sep 23, 2011 3:56 am
Re: HAC corrected variance in unit root tests
In attached workfile execute the following code
smpl 2005m02 2012m04
freeze(t1) y.uroot(ers, none)
freeze(t2) y.uroot(pp, none)
HAC in t1 differs from t2, though they are calculated by the same formula.
smpl 2005m02 2012m04
freeze(t1) y.uroot(ers, none)
freeze(t2) y.uroot(pp, none)
HAC in t1 differs from t2, though they are calculated by the same formula.
- Attachments
-
- PP test.WF1
- (10.79 KiB) Downloaded 342 times
-
EViews Glenn
- EViews Developer
- Posts: 2682
- Joined: Wed Oct 15, 2008 9:17 am
Re: HAC corrected variance in unit root tests
Before I delve too much into this, you are aware, aren't you, that the PP and ERS use different residuals...
-
kiber_master
- Posts: 94
- Joined: Fri Sep 23, 2011 3:56 am
Re: HAC corrected variance in unit root tests
I don't understand you. In documentation it is said that residuals for both tests are the same!
See EViews 7 Users Guide II, Chapter 13. Univariate Time Series Analysis, table at p.389:
PP, ERS Point Optimal, NP - residuals from the Dickey-Fuller test equation.
See EViews 7 Users Guide II, Chapter 13. Univariate Time Series Analysis, table at p.389:
PP, ERS Point Optimal, NP - residuals from the Dickey-Fuller test equation.
-
EViews Glenn
- EViews Developer
- Posts: 2682
- Joined: Wed Oct 15, 2008 9:17 am
Re: HAC corrected variance in unit root tests
The table isn't correct. The text is. The ERS Point Optimal and NP tests are as described in the previous pages. I'll make a note to have someone clean this up.
-
kiber_master
- Posts: 94
- Joined: Fri Sep 23, 2011 3:56 am
Re: HAC corrected variance in unit root tests
It isn't evident for me, residuals from which model should be used to calculate HAC corrected variance. Could you tell me?
-
EViews Glenn
- EViews Developer
- Posts: 2682
- Joined: Wed Oct 15, 2008 9:17 am
Re: HAC corrected variance in unit root tests
Sorry, I hadn't meant to post that last one. Ignore it. They were some initial thoughts before thinking too hard about the issue and I meant to delete it before posting.
My original comment about the residuals was because I was thinking about the residuals from the DFGLS which are indeed different from those from the DF. But obviously that wasn't your question.
By the way, your original code example doesn't work since ERS doesn't support NONE. Once you let me know which specific test to look at I can look into this more closely. Sorry again for the confusion.
My original comment about the residuals was because I was thinking about the residuals from the DFGLS which are indeed different from those from the DF. But obviously that wasn't your question.
By the way, your original code example doesn't work since ERS doesn't support NONE. Once you let me know which specific test to look at I can look into this more closely. Sorry again for the confusion.
-
kiber_master
- Posts: 94
- Joined: Fri Sep 23, 2011 3:56 am
Re: HAC corrected variance in unit root tests
Sorry for wrong code. The correct code is following
smpl 2005m02 2012m04
freeze(t2) y.uroot(pp, const)
freeze(t1) y.uroot(ers, const, hac=bt)
smpl 2005m02 2012m04
freeze(t2) y.uroot(pp, const)
freeze(t1) y.uroot(ers, const, hac=bt)
-
EViews Glenn
- EViews Developer
- Posts: 2682
- Joined: Wed Oct 15, 2008 9:17 am
Re: HAC corrected variance in unit root tests
It's the same presample issue as in the Phillips-Perron test (http://forums.eviews.com/viewtopic.php?f=4&t=7089). You'll see this if you set your sample to start at the first observation in the workfile.
I'm inclined to line up all of the presample handling, but to do so in EViews 8. It's not a bug in the calculation, be we can and do strive for consistency in approaches as much as possible, and I think it best to correct this, but would rather not do it mid-release.
Thanks for your help.
I'm inclined to line up all of the presample handling, but to do so in EViews 8. It's not a bug in the calculation, be we can and do strive for consistency in approaches as much as possible, and I think it best to correct this, but would rather not do it mid-release.
Thanks for your help.
-
kiber_master
- Posts: 94
- Joined: Fri Sep 23, 2011 3:56 am
Who is online
Users browsing this forum: No registered users and 2 guests
