the weightedVariance function
weightedVariance(x, y = NULL, w)
Arguments
| x |
x is a data vector |
| y |
default to NULL, if given it is ignored |
| w |
weight vector, values should be between 0 and 1 |
Value
numeric weighted variance value for x
Examples
#> [1] 1.006218