for loop strings to group
Posted: 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 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.