Page 1 of 1

Goup loop

Posted: Sat Sep 03, 2016 9:05 pm
by Andre2016
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

Re: Goup loop

Posted: Sat Sep 03, 2016 10:09 pm
by EViews Gareth

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.

Re: Goup loop

Posted: Sat Sep 03, 2016 10:40 pm
by Andre2016

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