weighted_mvsk {TAD} | R Documentation |
Compute the weighted mean, variance, skewness and kurtosis
Description
Compute the weighted mean, variance, skewness and kurtosis of data with given weights
Usage
weighted_mvsk(data, weights)
Arguments
data |
the data |
weights |
the vector or matrix of weights corresponding to the data (each row corresponding to an iteration of data) |
Value
the list of weighted mean, variance, skewness and kurtosis of the data
Examples
weighted_mvsk(
data = c(1, 2, 3),
weights = matrix(data = c(1, 1, 1, 2, 1, 3), nrow = 2, ncol = 3)
)
[Package TAD version 1.0.0 Index]