generalized_mean {vdar} | R Documentation |
Generalized mean
Description
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
Usage
generalized_mean(x, ...)
## Default S3 method:
generalized_mean(
x,
var,
individual_var = matrix(0, nrow = nrow(x), ncol = ncol(x)),
...
)
## S3 method for class 'rmult'
generalized_mean(
x,
var,
individual_var = matrix(0, nrow = nrow(x), ncol = ncol(x)^2),
...
)
Arguments
x |
a matrix containing the data for which the mean should be calculated |
... |
not implemented |
var |
a matrix containing the corrected (estimated true) group variances |
individual_var |
a matrix containing individual variances. Default is a 0 - matrix with the dimensions of x, can be used for implementing the individual uncertainties |
Value
vector of lenght of ncol(x) of generalized means
Methods (by class)
-
default
: for class matrix or data.frame -
rmult
: for class rmult of package 'compositions'
Author(s)
Solveig Pospiech, K. Gerald v.d. Boogaart
[Package vdar version 0.1.3-2 Index]