Goup loop

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

Andre2016
Posts: 12
Joined: Thu Sep 01, 2016 4:47 pm

Goup loop

Postby Andre2016 » Sat Sep 03, 2016 9:05 pm

Hello,

Is there a more efficient ways to write the following codes ?

Code: Select all

group fleetbyageall num1 num2 num3 num4 num5 num6 num7 num8 num9 num10 num11 num12 num13 num14 num15 num16 num17 num18 num19 num20 num21 num22 num23 num24 num25 num26 num27 num28 num29 num30 num31 num32 num33 num34 num35 num36 num37 num38 num39 num40 num41 num42 num43 num44 num45 num46 num47 num48 num49 num50 num51 num52 num53

Code: Select all

genr westeur=AUT+ANDO+BEL+CYP+DNK+FIN+FRA+DEU+GRC+GRL+ISL+IRL+ITA+LUX+MLT+NLD+NOR+PRT+ESP+SWE+CHE+GBR
Thanks a lot

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

Re: Goup loop

Postby EViews Gareth » Sat Sep 03, 2016 10:09 pm

Code: Select all

group fleetbyageall num*
(assuming there aren't any other nums you don't want in the group).


For the second one, if they're already in a group you can use @rsum. Otherwise, no.

Andre2016
Posts: 12
Joined: Thu Sep 01, 2016 4:47 pm

Re: Goup loop

Postby Andre2016 » Sat Sep 03, 2016 10:40 pm

Code: Select all

group fleetbyageall num*
(assuming there aren't any other nums you don't want in the group).


For the second one, if they're already in a group you can use @rsum. Otherwise, no.
Thank you


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests