Learn R Programming

robCompositions (version 2.4.1)

orthbasis: Orthonormal basis

Description

Orthonormal basis from cenLR transformed data to pivotCoord transformated data.

Usage

orthbasis(D)

Value

the orthonormal basis.

Arguments

D

number of parts (variables)

Author

Karel Hron, Matthias Templ. Some code lines of this function are a copy from function gsi.buildilr from

Details

For the chosen balances for “pivotCoord”, this is the orthonormal basis that transfers the data from centered logratio to isometric logratio.

See Also

pivotCoord, cenLR

Examples

Run this code

data(expenditures)
V <- orthbasis(ncol(expenditures))
xcen <- cenLR(expenditures)$x.clr
xi <- as.matrix(xcen) %*% V$V
xi
xi2 <- pivotCoord(expenditures)
xi2

Run the code above in your browser using DataLab