Summing columns using a wildcard

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

abielr
Posts: 9
Joined: Wed Feb 04, 2009 12:25 pm

Summing columns using a wildcard

Postby abielr » Tue Aug 18, 2009 1:21 pm

Is there anyway I can create a new series that is the sum of a collection of series, where the collection is specified with a wildcard? For example:

series x = sum(*_commonsuffix)

Here I want make x equal to the sum of all series ending in _commonsuffix.

Thanks.

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

Re: Summing columns using a wildcard

Postby EViews Gareth » Tue Aug 18, 2009 1:33 pm

Yes.

However how to do it depends on what sum you want. Whatever the answer, you'll need to create a group containing the series:

group mygroup *_commonsuffix


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 1 guest