running_weighted_var | R Documentation |
Computes running weighted variance of a vector, returning the values from each step.
running_weighted_var(x, w, method = c("moment", "unbiased"), na.rm = FALSE)
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 |
A vector containing the recursive weighted variance estimates.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.