Freezing Cointegration test

For questions regarding programming in the EViews programming language.

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

mike_d
Posts: 17
Joined: Thu Feb 09, 2012 7:52 am

Freezing Cointegration test

Postby mike_d » Thu Feb 16, 2012 10:37 am

Hi I am trying to freeze a cointegration test contained in a loop to access the test values. When I simply run the test without the freeze command I get the results without any errors. However when I try to freeze it I get an illegal lag or index specification error. I cannot seem to figure out what I am doing wrong. I will show below the exact lines of coding I am using. Any direction would be very helpful.


'''works fine
coint(s,maxlag=12) cds_spread fitch_rate s_p_rate @ credit_spread term_spread short_int__rate

'''returns error
freeze(coint_test) coint(s,maxlag=12) cds_spread fitch_rate s_p_rate @ credit_spread term_spread short_int__rate



Thanks

Mike

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

Re: Freezing Cointegration test

Postby EViews Gareth » Thu Feb 16, 2012 10:42 am

You have to use the group form of the command:

Code: Select all

freeze(coint_test) group.coint(s, maxlag=12) @ exogs

mike_d
Posts: 17
Joined: Thu Feb 09, 2012 7:52 am

Re: Freezing Cointegration test

Postby mike_d » Thu Feb 16, 2012 10:55 am

Thanks Gareth!


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests