Augmented Dickey Fuller test programming

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

neptunhiker
Posts: 50
Joined: Sat Oct 20, 2012 7:30 am

Augmented Dickey Fuller test programming

Postby neptunhiker » Fri Mar 15, 2013 10:19 am

Hello everybody,

I have a very basic question, which I cannot find the solution for. I would like to perform a unit root test in a program environment. If I do the following

Code: Select all

uroot GDP
a window opens, where I have to specify the test type, the type of data (i.e. level, 1st diff., 2nd diff.), if I want to include an intercept and the lag length.

I guess, I should be able to control these options doing the following:

Code: Select all

uroot (adf,const,info=sic) gdp
But, I get an error message stating: (adf,const,info=sic) is not defined. What am I not doing right? I want to avoid chosing the options in the popup window and specify them in the program environment.

Thanks a lot everyone.

neptunhiker
Posts: 50
Joined: Sat Oct 20, 2012 7:30 am

Re: Augmented Dickey Fuller test programming

Postby neptunhiker » Fri Mar 15, 2013 10:27 am

I also have the problem, if I wanto to calculate autocorrelations using the following command:

Code: Select all

groupxyz.correl(3)
A new window pops up, asking me to provide the correlogram of level, 1st difference or 2nd difference. How can I avoid these popup windows and just specify the neccessary information in the programming environment.

Thanks a lot.

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

Re: Augmented Dickey Fuller test programming

Postby EViews Gareth » Fri Mar 15, 2013 9:03 pm

Look up series.uroot in the series section of the Object Reference (pdf available from help menu)

Similarly, group.correl

neptunhiker
Posts: 50
Joined: Sat Oct 20, 2012 7:30 am

Re: Augmented Dickey Fuller test programming

Postby neptunhiker » Tue Mar 19, 2013 8:42 am

Hi Gareth,

thanks for the hint. Even though I checked the help file before, I somehow missed the option "prompt". The solution that worked for me is therefore:

Code: Select all

gdp.uroot (adf,const,info=sic,prompt)
Thanks again.

Bests


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest