Sum of observations in a series for each specified group.
Syntax: @sumsby(x, y[y1, y2, ... yn, s])
x: series
y series, alpha
s: (optional) sample string or object
Return: series
Compute the sum of observations in x for group identifiers defined by distinct values of y.
EViews will use the current or specified workfile sample.
Examples
show @sumsby(x, g1, g2)
produces a linked series of by-group sums of observations in x, where members of the same group have identical values for both g1 and g2.
Cross-references