for loop strings to group

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

vytama
Posts: 72
Joined: Wed Dec 19, 2012 11:05 am

for loop strings to group

Postby vytama » Thu Feb 19, 2015 12:35 pm

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.

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

Re: for loop strings to group

Postby EViews Gareth » Thu Feb 19, 2015 5:16 pm

Change:

Code: Select all

group all.add D1_{%mnemonics}
to be:

Code: Select all

all.add D1_{%mnemonics}


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests