Command Reference : Function Reference : Function Reference: M
  
 
@mvarp
Trailing moving population variances (non-d.f. adjusted; ignore NAs).
n-period trailing moving square roots of population Pearson product moment variance, with no d.f. correction, ignoring NAs.
Syntax: @mvarp(x, n)
x: series
n integer, series
Return: series
For each observation and integer , compute the population variance () using the current and previous observations of the series,
and ignoring missing values (NAs).
If n is not an integer, the integer floor will be used.
Equivalent to @mvar.
Examples
show @mvarp(x, 12)
produces a linked series of the moving population variance of the series x where NAs are ignored.
Cross-references
See also @mstdev, @mstdevp, @mstdevs, @mvar, and @mvars.
For the NA-propagating variant of this function, see @movvarp.