@sum |

Arithmetic sum.

Computes the sum of the elements of x.

Syntax: @sum(x[, s])

x: series, vector, matrix

s: (optional) sample string or object when x is a series and assigning to a series

Return: number

For series calculations, EViews will use the current or specified workfile sample.

Examples

If x is a series of length 5 whose elements are 1, 2, 3, 4, 5, then

= @sum(x)

returns 15.

Cross-references