weighted_mvsk: Compute the weighted mean, variance, skewness and kurtosis

View source: R/tad.R

weighted_mvskR 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)
)


TAD documentation built on April 4, 2025, 5:10 a.m.