## S3 method for class 'acomp':
mean(x,\dots,robust=getOption("robust"))
## S3 method for class 'rcomp':
mean(x,\dots,robust=getOption("robust"))
## S3 method for class 'aplus':
mean(x,\dots,robust=getOption("robust"))
## S3 method for class 'rplus':
mean(x,\dots,robust=getOption("robust"))
## S3 method for class 'rmult':
mean(x,\dots,na.action=NULL,robust=getOption("robust"))
mean
e.g. trim
acomp
,
rcomp
,
aplus
, rplus
correpond to different
geometries. The mean is calculated in the respective canonical
geometry by applying a canonical transform (see cdt
), taking ordinary
meanCol
and backtransforming.
The Aitchison geometries imply that mean.acomp
and mean.aplus
are
geometric means, the first one closed. The real geometry implies that
mean.rcomp
and mean.rplus
are arithmetic means, the first
one resulting in a closed composition.
In all cases the mean is again an object of the same class.clo
, meanCol
,
geometricmean
, acomp
,
rcomp
, aplus
, rplus
data(SimulatedAmounts)
meanCol(sa.lognormals)
mean(acomp(sa.lognormals))
mean(rcomp(sa.lognormals))
mean(aplus(sa.lognormals))
mean(rplus(sa.lognormals))
mean(rmult(sa.lognormals))
Run the code above in your browser using DataLab