Hi, assuming that I define in for-loop several procedures. Then I want to group the outcome, including all countries as in the for-loop
simple example:
for %c USA GER
genr yoy_{%c}= GDP_{%c}-GDP_{%c}(-1)
next
and the next step should be something like:
group GDP GDP_{%c}
where all series defined in %c should be included, hence group GDP GDP_USA GDP_GER
Do you have some suggestions?
for loop and group
Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt
-
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13323
- Joined: Tue Sep 16, 2008 5:38 pm
Re: for loop and group
Not sure I follow exactly, but I think this is what you want:
Code: Select all
group GDP
for %c USA GER
genr yoy_{%c}= GDP_{%c}-GDP_{%c}(-1)
gdp.add gdp_{%c}
next
Follow us on Twitter @IHSEViews
Who is online
Users browsing this forum: No registered users and 21 guests