Command Reference : Function Reference : Function Reference: C
  
 
@cumbnas
Backward cumulative missing observations of a series.
Increasing samples calculation of the missing (NA) observations in .
Syntax: @cumbnas(x[, s])
x: series
s: (optional) sample string or object
Return: series
Compute the number of missing (NA) values in x from to the end of the workfile or from to the end of the optional sample s.
This function is panel aware.
Examples
series x = @recode(@rnd > 0.5, @nrnd, na)
show x @cumbnas(x)
produces a spreadsheet with two columns correspond to x and @cumbnas(x). The second series (which corresponds to @cumbnas(x)) starts at the count returned by @nas(x) and decrements in those observations where x is NA.
Cross-references
See also @cumbobs.
For the forward variant of this function, see @cumnas.