Description Usage Arguments Value Examples
The weightedVariance_matrix function calculates a vector of weighted variances for a given data vector, for a matrix of given weights.
1 | weightedVariance_matrix(x, y = NULL, W)
|
x |
x is a data vector |
y |
default to NULL, if given, it is ignored |
W |
weight matrix, values should be between 0 and 1, number of columns should be the same as length(x) and length(y) |
vector
weighted variances of x for the weights
1 2 3 | x = rnorm(100)
W = weightMatrix(100)
weightedVariance_matrix(x,y,w)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.