var_wt | R Documentation |
Calculates the weighted variance
var_wt(x, wt, na.rm = FALSE)
x |
numeric vector |
wt |
weights |
na.rm |
If |
A numeric vector containing weighted variance of the elements of x
x <- sample(1:10, size = 10, replace = TRUE)
x.weight <- seq(0, 1, length.out = 10)
var_wt(x, wt = x.weight)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.