Computes running variance of a vector, returning the values from each step.
running_var(x, method = c("moment", "unbiased"), na.rm = FALSE)
A vector containing the recursive variance estimates.
A numeric vector or object that can be coerced to such.
Estimator type, either "moment"
(default) or
"unbiased"
, which is unbiased only in case of frequency weights.
If TRUE
, NA
values in x
are
omitted from the computation. Default is FALSE
.