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

green

Greenacre's power transformation


Description

Greenacre's power transformation.

Usage

green(x, theta)

Arguments

x

A matrix with the compositional data.

theta

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 log transformation is applied.

Details

Greenacre's transformation is applied to the compositional data.

Value

A matrix with the power transformed data.

Author(s)

Michail Tsagris

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

References

Greenacre, M. (2009). Power transformations in correspondence analysis. Computational Statistics & Data Analysis, 53(8): 3107-3116. http://www.econ.upf.edu/~michael/work/PowerCA.pdf

See Also

Examples

library(MASS)
x <- as.matrix(fgl[, 2:9])
x <- x / rowSums(x)
y1 <- green(x, 0.1)
y2 <- green(x, 0.2)
rbind( colMeans(y1), colMeans(y2) )

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.