ZAURoot (Zivot-Andrews Unit Root test)

For questions about EViews Add-ins available from the EViews Add-ins webpage. Note each add-in available on our webpage will have its own individual thread.

Moderators: EViews Gareth, EViews Moderator, EViews Esther

AndronikiK
Posts: 1
Joined: Mon Sep 03, 2012 4:07 am

Re: ZAURoot (Zivot-Andrews Unit Root test)

Postby AndronikiK » Wed Sep 05, 2012 4:48 am

zivot_andrews.wf1
(9.77 KiB) Downloaded 821 times
To whom it may concerns,

I would like to introduce a problem that i confront with the implemtation of the ZA test on my time series. First of all, i have the E-views 7 software. The problem appears when i try to apply the ZA test for my annual data concerning the world's GDP (constant 2000 US$). Despite the fact that i get results for both intecept and trend, i dont get any results for intercept and trend separately whatever the lag length. The message that appears on my screen every time is "Near singular matrix error. Regressors may be perfectly collinear".

I would appreciate if any help could be available since i need the results for my dissertation.
You can find attached the workfile with the GDP in levels and in logarithms.

Thank you in advance,
Niki

mrrox
Posts: 20
Joined: Thu Oct 27, 2011 3:09 pm

Re: ZAURoot (Zivot-Andrews Unit Root test)

Postby mrrox » Wed Sep 05, 2012 5:55 pm

Gareth,

I get different results for my data. When I run this test in Eviews, I get a break which is different from the break obtained when this test is run in R on this data.

I used general to specific method to determine the lag length. But Eviews uses AIC to set the lag length.

And in most cases, I get near singular matrix error message.

Anyway, hope you will look into it.
mrrox

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13294
Joined: Tue Sep 16, 2008 5:38 pm

Re: ZAURoot (Zivot-Andrews Unit Root test)

Postby EViews Gareth » Wed Sep 05, 2012 6:58 pm

You'd have to ask Trubador.
Follow us on Twitter @IHSEViews

bvguizar
Posts: 40
Joined: Sat Aug 28, 2010 6:56 am

Re: ZAURoot (Zivot-Andrews Unit Root test)

Postby bvguizar » Thu Sep 06, 2012 9:08 am

Hi Gareth,

Sorry for the delay, please find file attached
Attachments
ZA_unit_root.wf1
(35.02 KiB) Downloaded 817 times

bvguizar
Posts: 40
Joined: Sat Aug 28, 2010 6:56 am

Re: ZAURoot (Zivot-Andrews Unit Root test)

Postby bvguizar » Fri Sep 07, 2012 10:55 am

It said 1 to 177 but can you help me now? I have uploaded the file correctly.


Hello

Thank you for your reply


I have two questions about the Zivot-andrews unit root test. How do you choose the perfect lag for it? I am using 12 because I have monthly information. I am working with 177 monthly observations and 5 variables using trend and constant. I know it has structural breaks and I am trying to identify them. However, I am not sure if I am identifying the breaks correctly since I used the maximum lag of 12 and I got an error on le85nst.

The ones I want to check with Z-A unit root test are:

le85nst
le85p
le85q
lgp
ly

The series I get the error is the one named le85nst. The error I get from this serie is Near singular matrix error: Regressors maybe perfectly collinear.

The original series is e85nst, I added logarithms and converted in le85nst and after that I used the seasonal adjustment of X12 since these are american series.

I will use a dummy to reflect the breaks in my ARDL/VAR model.

trubador
Did you use forum search?
Posts: 1518
Joined: Thu Nov 20, 2008 12:04 pm

Re: ZAURoot (Zivot-Andrews Unit Root test)

Postby trubador » Sat Sep 08, 2012 9:35 am

bvguizar wrote:The series I get the error is the one named le85nst. The error I get from this serie is Near singular matrix error: Regressors maybe perfectly collinear.

Use the code here: viewtopic.php?f=15&t=1432#p4925

bvguizar
Posts: 40
Joined: Sat Aug 28, 2010 6:56 am

Re: ZAURoot (Zivot-Andrews Unit Root test)

Postby bvguizar » Sat Sep 08, 2012 1:08 pm

Hello Trubador,

I get the error attached

do you know why I might get it?
Attachments
error.jpg
error.jpg (196.54 KiB) Viewed 25529 times

trubador
Did you use forum search?
Posts: 1518
Joined: Thu Nov 20, 2008 12:04 pm

Re: ZAURoot (Zivot-Andrews Unit Root test)

Postby trubador » Sat Sep 08, 2012 3:51 pm

Just change the initial part of the code:

Code: Select all

call zivot(le85nst,"C",12)

And then you should be getting the following output:

Variable(s) LE85NST
t-stat(s) -3.618547
Lag(s) 1.000000
Break 2000M01
DU1 p-value 0.022781

bvguizar
Posts: 40
Joined: Sat Aug 28, 2010 6:56 am

Re: ZAURoot (Zivot-Andrews Unit Root test)

Postby bvguizar » Sat Sep 08, 2012 5:38 pm

Hi,

with

call zivot(le85nst,"C",12)

I got

Variable(s) LE85NST

t-stat(s) -5.055183
Lag(s) 10.00000
Break 2005M12
DU1 p-value 0.000815

Is this wrong?

The file I originally updated here got corrupted then I re did it as this one but the values have changed I cannot get why is the same info as the one I uploaded before.

Could you please help?
Attachments
book1 za unit root.wf1
(40.81 KiB) Downloaded 724 times

trubador
Did you use forum search?
Posts: 1518
Joined: Thu Nov 20, 2008 12:04 pm

Re: ZAURoot (Zivot-Andrews Unit Root test)

Postby trubador » Sun Sep 09, 2012 8:15 am

Nothing seems wrong with your second workfile and when I re-run the code I get the same results as before.

bvguizar
Posts: 40
Joined: Sat Aug 28, 2010 6:56 am

Re: ZAURoot (Zivot-Andrews Unit Root test)

Postby bvguizar » Sun Sep 09, 2012 3:15 pm

Hi,

Thank you so much for your help, I doubled checked.

So this break found is just for constand and trend? Or how does it work?

Variable(s) LE85NST

t-stat(s) -3.618547
Lag(s) 1.000000
Break 2000M01
DU1 p-value 0.022781

How do you interpret the above results?

I am working with 177 monthly observations and 5 variables and I want to check the model with constant, trend and constant and trend. I know the series have structural breaks and I am trying to identify them and use a dummy where is needed.

Could you please help me?
Thanks
Blanca

trubador
Did you use forum search?
Posts: 1518
Joined: Thu Nov 20, 2008 12:04 pm

Re: ZAURoot (Zivot-Andrews Unit Root test)

Postby trubador » Sun Sep 09, 2012 11:27 pm

Please refer to the original study in order to better understand the approach and the details on different specifications. Other than that, I'd like to remind you that analyzing structural breaks within a modeling context is a different task. Although ZA unit root test will provide you some useful insight, you need to use a more general approach (e.g. Bai-Perron) if you are planning to build a model using these variables.

bvguizar
Posts: 40
Joined: Sat Aug 28, 2010 6:56 am

Re: ZAURoot (Zivot-Andrews Unit Root test)

Postby bvguizar » Mon Sep 10, 2012 2:19 pm

Dear Trubador

Do you mean this study:

'Zivot-Andrews Unit Root Test
'Reference: Zivot, E. and Andrews, D. W. K. (1992), “Further Evidence on the Great Crash, the Oil-Price Shock, and the Unit-Root Hypothesis”, Journal of Business & Economic Statistics, Vol. 10, No. 3, pp. 251-270.
Last edited by bvguizar on Mon Sep 17, 2012 10:57 am, edited 1 time in total.

standakostka
Posts: 1
Joined: Tue Sep 11, 2012 4:02 am

Re: ZAURoot (Zivot-Andrews Unit Root test)

Postby standakostka » Tue Sep 11, 2012 4:08 am

Hi,

thanks for the add-in, it looks really easy to use. Can be this test performed directly on for example gdp growth rates series or should there be regression first done?

bvguizar
Posts: 40
Joined: Sat Aug 28, 2010 6:56 am

Re: ZAURoot (Zivot-Andrews Unit Root test)

Postby bvguizar » Fri Dec 21, 2012 7:33 am

I am trying to use this add in on my lap top but it just doesn't work. I have eviews 7 and it doesn't let me use it on it. It marks an error.

Someone help please


Return to “Add-in Support”

Who is online

Users browsing this forum: No registered users and 7 guests