weighted_se | R Documentation |
Computes a weighted standard error of a vector or matrix.
weighted_se(x, w, na.rm)
x |
A numeric vector or matrix. For matrix, standard errors are computed for each column |
w |
A numeric vector of non-negative weights. Will be automatically normalised to sum to one. |
na.rm |
If |
A weighted variance.
Compared to some other R functions, here the weights are regarded as probability weights, not frequency weights.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.