Projects the D-dimensional compositional data on the (D-1)-dimensional simplex isometrically back and forth by transforming the values according to
z_i = √((D - i)/(D - i + 1)) log( x_i / (∏ (j = i + 1 ... D) x_j)^(1/(D - i))
1 2 3 |
x |
a numeric vector of length |
comp |
the component to use as the first compositional part |
z |
a numeric vector of length |
perc |
should the result be a matrix with percentage shares (default |
isomLR
: a numeric matrix with (D-1)
columns with the transformed values. The name of the first
column is the name of the first part (the other names are according to the order of the
columns in the given matrix x
)
isomLRinv
: a numeric matrix with D
columns with the transformed values. The
values in the matrix are not on the original scale, but the percentage shares are equal.
isomLRinv
:
1 2 3 4 5 6 |
Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.