Command Reference : Function Reference : Function Reference: C
  
 
@cumbsum
Backward cumulative sums of a series.
Decreasing samples calculation of the sum of the values in x.
Syntax: @cumbsum(x[, s])
x: series
s: (optional) sample string or object
Return: series
Compute the sum of the values in x from to the end of the workfile or from to the end of the optional sample s:
where is the last period of the cumulative process.
This function is panel aware.
Examples
show @cumbsum(x)
generates a linked series of the backward cumulative sum of the observations in series x.
Cross-references
See also @cumbmean, @cumbsumsq, and @cumbprod.
For the forward variant of this function, see @cumsum.