Learn R Programming

robCompositions (version 1.6.3)

alr: Additive log-ratio transformation

Description

The alr transformation moves D-part compositional data from the simplex into a (D-1)-dimensional real space.

Usage

alr(x, ivar=ncol(x))

Arguments

x
D-part compositional data
ivar
Rationing part

Value

  • A list of class alr which includes the following content:
  • x.alrthe transformed data
  • varxthe rationing variable
  • ivarthe index of the rationing variable, indicating the column number of the rationing variable in the data matrix x
  • cnamesthe column names of x
  • The additional information such as cnames or ivar is usefull when a back-transformation is applied on the same data set.

Details

The compositional parts are divided by the rationing part before the logarithm is taken.

References

Aitchison, J. (1986) The Statistical Analysis of Compositional Data Monographs on Statistics and Applied Probability. Chapman & Hall Ltd., London (UK). 416p.

See Also

addLR, addLRinv, alr

Examples

Run this code
## function is deprecated, use addLR instead.

Run the code above in your browser using DataLab