Command Reference : Function Reference : Function Reference: M
  
 
@mobs
Trailing moving non-missing observations.
n-period trailing number of non-missing observations, ignoring NAs.
Syntax: @mobs(x, n)
x: series, alpha
n integer, series
Return: series
For each observation and integer , count the number of non-missing (non-NA) observations in the current and previous observations of the series,
Equivalent to @movobs.
Examples
show @mobs(x, 12)
produces a linked series of non-NA counts based on a 12-period moving window over the series x.
Cross-references
See also @mnas.