Calculation applied to all series in a 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

jthodge
Posts: 77
Joined: Tue Oct 21, 2008 5:52 am

Calculation applied to all series in a group

Postby jthodge » Thu Mar 20, 2014 1:25 pm

Is there a simple way to perform a simple arithmetic operation on all series in a group? For example, divide all series by 1000?

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

Re: Calculation applied to all series in a group

Postby EViews Gareth » Thu Mar 20, 2014 1:26 pm

Only with a for loop in a program.

jthodge
Posts: 77
Joined: Tue Oct 21, 2008 5:52 am

Re: Calculation applied to all series in a group

Postby jthodge » Thu Mar 20, 2014 1:31 pm

OK. That's what I normally use. For example:

Code: Select all

for !i = 1 to group01.@count %var = group01.@seriesname(!i) genr {%var} = {%var} / 1000 next
I thought there might be a simpler way.


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests