LS and ADF

For questions regarding programming in the EViews programming language.

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

DannyB
Posts: 14
Joined: Sat Dec 19, 2015 10:43 am

LS and ADF

Postby DannyB » Sat Dec 19, 2015 10:52 am

Hi everyone,

I currently manage to get results with the uroot test. I get the probability of ADF test by performing a freeze but I would like to retrieve the results of the augmented test by performing an LS equation.

I can do this

Code: Select all

freeze(nbsh_adf) nbsh.uroot() scalar nbsh_adf_prob = @val(nbsh_adf(7,5))
This is OK for me (can i retrieve the prob value with an other method?)
I have all the data why i am looking for, but i want to get them using LS method cause coefficents with uroot method are automatically define.

That's why i do that

Code: Select all

equation nbsh_adf_ls nbsh_adf_ls.ls nbsh 1
I want to know the coefficient i need on the manually LS method to obtain the same results as the uroot test, cause i want to retrieve all data using nbsh_adf_ls.@dw for example. When i make the uroot test on an other series, the number of lines can change in the "variable" part that's why i canno't use the freeze method...

Regards,

Danny.

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

Re: LS and ADF

Postby EViews Gareth » Sat Dec 19, 2015 6:43 pm

If you're creating an actual equation object, you can just grab the coefficients from the equation directly with equationname.@coefs

DannyB
Posts: 14
Joined: Sat Dec 19, 2015 10:43 am

Re: LS and ADF

Postby DannyB » Mon Dec 21, 2015 7:02 am

Nbsh series is in an imported excel file, i d'ont create the series


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest