Recursive sum of series
Posted: Tue Mar 24, 2009 10:01 am
Hi,
I want to create a series that sums other series in a workfile and I am unsure about the syntax:
The code underneath does not work but I believe illustrates what I am trying to do:
For %latam arg bra chl col ecu per ury ven
For %abovline curr good serv fact tran
series lat8_{%abovline}_ltm= lat8_{%abovline}_ltm+{%latam}_{%abovline}_ltm
next
next
So that I obtain:
lat8_curr_ltm=arg_curr_ltm+bra_curr_ltm+chl_curr_ltm+...
Any suggestions will be appreciated.
Regards,
Javier
I want to create a series that sums other series in a workfile and I am unsure about the syntax:
The code underneath does not work but I believe illustrates what I am trying to do:
For %latam arg bra chl col ecu per ury ven
For %abovline curr good serv fact tran
series lat8_{%abovline}_ltm= lat8_{%abovline}_ltm+{%latam}_{%abovline}_ltm
next
next
So that I obtain:
lat8_curr_ltm=arg_curr_ltm+bra_curr_ltm+chl_curr_ltm+...
Any suggestions will be appreciated.
Regards,
Javier