var_wt {rineq} | R Documentation |
Calculates the weighted variance
Description
Calculates the weighted variance
Usage
var_wt(x, wt, na.rm = FALSE)
Arguments
x |
numeric vector |
wt |
weights |
na.rm |
If |
Value
A numeric vector containing weighted variance of the elements of x
Examples
x <- sample(1:10, size = 10, replace = TRUE)
x.weight <- seq(0, 1, length.out = 10)
var_wt(x, wt = x.weight)
[Package rineq version 0.2.3 Index]