Description Usage Arguments Value Examples
the weightedVariance function
1 | weightedVariance(x, y = NULL, w)
|
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 |
numeric
weighted variance value for x
1 2 3 | x = rnorm(100)
w = runif(100)
weightedVariance(x,w)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.