The folded power transformation | R Documentation |
The folded power transformation.
fp(x, lambda)
x |
A matrix with the compositional data. Zero values are allowed. |
lambda |
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 |
The folded power transformation is applied to the compositional data.
A matrix with the transformed data.
Michail Tsagris.
R implementation and documentation: Michail Tsagris mtsagris@uoc.gr.
Atkinson, A. C. (1985). Plots, transformations and regression; an introduction to graphical methods of diagnostic regression analysis Oxford University Press.
alr, bc, green, alfa
library(MASS)
x <- as.matrix(fgl[, 2:9])
x <- x / rowSums(x)
y1 <- fp(x, 0.2)
y2 <- fp(x, 0)
rbind( colMeans(y1), colMeans(y2) )
rowSums(y1)
rowSums(y2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.