Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

acor

Alpha generalised correlations between two compositional datasets


Description

Alpha generalised correlations between two compositional datasets.

Usage

acor(y, x, a, type = "dcor")

Arguments

y

A matrix with the compositional data.

x

A matrix with the compositional data.

a

The value of the power transformation, it has to be between -1 and 1. If zero values are present it has to be greater than 0. If α=0 the isometric log-ratio transformation is applied. If more than one values are supplied the distance or canonical correlation are computed for all values.

type

the type of correlation to compute, the distance correlation ("edist"), the canonical correlation ("cancor") or "both".

Details

The α-transformation is applied toe ach composition and then the distance correlation or the canonical correlation is computed. If one value of α is supplied the type="cancor" will return all eigenvalues. If more than one values of α are provided then the first eigenvalue only will be returned.

Value

A vector or a matrix depending on the length of the values of α and the type of the correlation to be computed.

Author(s)

Michail Tsagris

R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.

See Also

Examples

y <- rdiri(30, runif(3) )
x <- rdiri(30, runif(4) )
acor(y, x, a = 0.4)

Compositional

Compositional Data Analysis

v4.6
GPL (>= 2)
Authors
Michail Tsagris [aut, cre], Giorgos Athineou [aut], Abdulaziz Alenazi [ctb]
Initial release
2021-04-27

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.