chiPower: The chiPower transformation

View source: R/chiPower.r

chiPowerR Documentation

The chiPower transformation

Description

Transformation of compositional data with power transformation and chi-square normalization.

Usage

chiPower(X, close=TRUE, power=1, chi=TRUE, BoxCox=TRUE, CLR=TRUE)

Arguments

X

the compositional data matrix

close

close the data after powering; default is TRUE

power

power of the transformation; default is 1 (no powering)

chi

apply chi-square normalization; default is TRUE

BoxCox

apply Box-Cox style of transformation; default is TRUE

CLR

translate columns so that convergence is to CLR transformation; default is TRUE

Details

The function chiPower generates the chiPower transformation to new variables as alternatives to logratios, with the advantage that these new variables converge to centred logratios as the power decreases (for positive data). This transformation is convenient for data with zeros, but then the power needs to be monitored.

Value

new chiPower-transformed variables

Author(s)

Michael Greenacre

References

Greenacre, M. (2024). The chiPower transformation: a valid alternative to logratio transformations in compositional data analysis. Advances in Data Analysis and Classification, https://doi.org/10.1007/s11634-024-00600-x

See Also

CLR

Examples

# transform a compositional data set to chiPower variables   
data(Kimberlite)
kim <- CLOSE(Kimberlite[,3:24])
kim.chiP <- chiPower(kim)

easyCODA documentation built on Nov. 24, 2026, 1:07 a.m.

Related to chiPower in easyCODA...