mean: Compositional Mean

meanR Documentation

Compositional Mean

Description

Compositional Mean

Usage

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

Arguments

x

A CompositionMatrix object.

...

Further arguments to be passed to internal methods.

Details

Closed vector of the columns geometric means.

Value

A numeric vector.

Author(s)

N. Frerebeau

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

## Data from Aitchison 1986
data("hongite")

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

## Mean
mean(coda)

## Quantile
quantile(coda)

nexus documentation built on Sept. 11, 2024, 6:43 p.m.