Learn R Programming

nexus (version 0.3.0)

mean: Compositional Mean

Description

Compositional Mean

Usage

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

Value

A numeric vector.

Arguments

x

A CompositionMatrix object.

...

Further arguments to be passed to internal methods.

Author

N. Frerebeau

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.

See Also

Other statistics: aggregate(), condense(), covariance(), dist, mahalanobis(), margin(), pip(), quantile(), scale(), variance(), variance_total(), variation()

Examples

Run this code
## Data from Aitchison 1986
data("hongite")

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

## Mean
mean(coda)

## Quantile
quantile(coda)

Run the code above in your browser using DataLab