Skip to contents

Compositional Mean

Usage

# S4 method for CompositionMatrix
mean(x, ...)

Arguments

x

A CompositionMatrix object.

...

Further argument to be passed to other methods.

Value

A numeric vector.

Details

Closed vector of the columns geometric means.

References

Aitchison, J. (1986). The Statistical Analysis of Compositional Data. London: Chapman and Hall, p. 64-91. doi:10.1007/978-94-009-4109-0 .

See also

Other statistics: aggregate(), covariance, dist(), mahalanobis(), variation()

Author

N. Frerebeau

Examples

## Coerce to compositional data
data("hongite")
coda <- as_composition(hongite)

## Mean
mean(coda)
#>          A          B          C          D          E 
#> 0.48941415 0.21966082 0.09881294 0.10405382 0.08805827