Hello,
Eviews 8 here. Instead of using "group all.add D1_series1 D1_series2 ..." where I would list all series, I wanted to use this command with string:
indicators = @rows(mnemonic_all)
for !i=1 to !indicators
%mnemonics=mnemonic_all(!i)
group all.add D1_{%mnemonics}
next
However, if I run it the group ends up with the last series only. Can you help me to figure out how to modify this code that it would append series in this group? Thank you.
for loop strings to group
Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason
-
EViews Gareth
- Fe ddaethom, fe welon, fe amcangyfrifon
- Posts: 13604
- Joined: Tue Sep 16, 2008 5:38 pm
Re: for loop strings to group
Change:
to be:
Code: Select all
group all.add D1_{%mnemonics}
Code: Select all
all.add D1_{%mnemonics}
Who is online
Users browsing this forum: No registered users and 2 guests
