Calculates the generalized mean of a data set by using a given group variance and individual, observation-wise variances for each observation of the data set
generalized_mean(x, ...)# S3 method for default
generalized_mean(
x,
var,
individual_var = matrix(0, nrow = nrow(x), ncol = ncol(x)),
...
)
# S3 method for rmult
generalized_mean(
x,
var,
individual_var = matrix(0, nrow = nrow(x), ncol = ncol(x)^2),
...
)
a matrix containing the data for which the mean should be calculated
not implemented
a matrix containing the corrected (estimated true) group variances
a matrix containing individual variances. Default is a 0 - matrix with the dimensions of x, can be used for implementing the individual uncertainties
vector of lenght of ncol(x) of generalized means
default
: for class matrix or data.frame
rmult
: for class rmult of package 'compositions'