weighted_mvsk | R Documentation |
Compute the weighted mean, variance, skewness and kurtosis of data with given weights
weighted_mvsk(data, weights)
data |
the data |
weights |
the vector or matrix of weights corresponding to the data (each row corresponding to an iteration of data) |
the list of weighted mean, variance, skewness and kurtosis of the data
weighted_mvsk(
data = c(1, 2, 3),
weights = matrix(data = c(1, 1, 1, 2, 1, 3), nrow = 2, ncol = 3)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.