Description Usage Arguments Details Value Author(s) References See Also Examples

Aitchison's centered log ratio tranformation for compositional data

1 |

`data` |
a data frame in which the data is stored |

`group` |
if not NULL then a character string specifying the name of the grouping variable |

This function will give a warning if zeros are present because the transformed data will have -Infs.

a data frame with the CLR transformation applied to data. Each row in the data frame is standardized by dividing by the geometric mean of that row. The logarithms of the resulting ratios are returned. If a grouping variable is specified, then this is preserved.

James M. Curran

Aitchison, J. (1986). “The Statistical Analysis of Compositional Data”, Chapman and Hall, reprinted in 2003 with additional material by The Blackburn Press

alr

1 2 3 4 5 6 7 8 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.