Hi everyone,
I'm pretty new to EViews and stuck with the following problem. I have a workfile with several groups. Each group has two variables and I'm trying to perform a Granger causality test for each group. I thought the 'FOR loop' would work but I always get an error. I found some of this code in the forum but it doesn't work.
%grouplist = @wlookup("*", "group")
for {%n} ={%grouplist}
{%n}.cause(2)
next
I would really appreciate it if someone could help.
Thanks!
loop with granger test
Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13307
- Joined: Tue Sep 16, 2008 5:38 pm
Re: loop with granger test
Code: Select all
%grouplist = @wlookup("*", "group")
for %n {%grouplist}
{%n}.cause(2)
next
Follow us on Twitter @IHSEViews
Re: loop with granger test
works perfect! Thanks a lot for the quick help :)
Who is online
Users browsing this forum: No registered users and 22 guests