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

acor.tune

Tuning of the alpha generalised correlations between two compositional datasets


Description

Tuning of the alpha generalised correlations between two compositional datasets.

Usage

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

Arguments

y

A matrix with the compositional data.

x

A matrix with the compositional data.

a

The range of values of the power transformation to search for the optimal one. If zero values are present it has to be greater than 0.

type

the type of correlation to compute, the distance correlation ("edist"), the canonical correlation type 1 ("cancor1") or the canonical correlation type 2 ("cancor2"). See details for more information.

Details

The α-transformation is applied to each composition and then the distance correlation or the canonical correlation is computed. If type = "cancor1" the function returns the value of α that maximizes the product of the eigenvalues. If type = "cancor2" the function returns the value of α that maximizes the the largest eigenvalue.

Value

A list including:

alfa

The optimal value of α.

acor

The maximum value of the acor.

runtime

The runtime of the optimization

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.