Command Reference : Function Reference : Function Reference: M
  
 
@movstdev
Trailing moving sample standard deviations (d.f. adjusted; propagate NAs).
n-period trailing moving square roots of Pearson product moment sample variances, with d.f. correction, propagating NAs.
Syntax: @movstdev(x, n)
x: series
n integer, series
Return: series
For each observation and integer , compute the sample standard deviation () using the current and previous observations of the series,
and propagating missing values (NAs).
If n is not an integer, the integer floor will be used.
Examples
show @movstdev(x, 12)
produces a linked series of the moving sample standard deviation of the series x where NAs are propagated.
Cross-references
See also @movstdevp, @movstdevs, @movvar, @movvarp, and @movvars.
For the NA-ignoring variant of this function, see @mstdev.