Page 1 of 1

Summing columns using a wildcard

Posted: Tue Aug 18, 2009 1:21 pm
by abielr
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.

Re: Summing columns using a wildcard

Posted: Tue Aug 18, 2009 1:33 pm
by EViews Gareth
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