running_weighted_var {diagis} | R Documentation |
Running weighted variance of a vector
Description
Computes running weighted variance of a vector, returning the values from each step.
Usage
running_weighted_var(x, w, method = c("moment", "unbiased"), na.rm = FALSE)
Arguments
x |
A numeric vector or object that can be coerced to such. |
w |
A numeric vector of non-negative weights. Will be automatically normalised to sum to one. |
method |
Estimator type, either |
na.rm |
If |
Value
A vector containing the recursive weighted variance estimates.
[Package diagis version 0.2.3 Index]