| chiPower | R Documentation |
Transformation of compositional data with power transformation and chi-square normalization.
chiPower(X, close=TRUE, power=1, chi=TRUE, BoxCox=TRUE, CLR=TRUE)
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 |
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.
new chiPower-transformed variables
Michael Greenacre
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
CLR
# transform a compositional data set to chiPower variables
data(Kimberlite)
kim <- CLOSE(Kimberlite[,3:24])
kim.chiP <- chiPower(kim)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.