lag length criteria test in batch

For questions regarding programming in the EViews programming language.

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

ckaas
Posts: 4
Joined: Thu May 13, 2010 12:36 am

lag length criteria test in batch

Postby ckaas » Sat May 22, 2010 8:36 pm

I am using the following code to take all series in my workfile and run SVARs on each.

group var_group *
for !i=1 to var_group.@count
%name = var_group.@seriesname(!i)
var {%name}_VAR.ls 1 2 {%name} national mb @
{%name}_VAR.append(svar) @e1 = C(1)*@e1 + C(2)*@u1
{%name}_VAR.append(svar) @e2 = C(3)*@e1 + C(4)*@u2
{%name}_VAR.append(svar) @e3 = C(5)*@e2 + C(6)*@u3
next


Here, I have specified the lag interval as 1 2, but I would like for the program to choose the results of a lag length criteria test (Schwarz, for example) for each individual test. Is there a way to do this?

Thanks!

Christian

Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests