| ilr_basis | R Documentation |
Construct an isometric log-ratio (ilr) basis for a composition with
D parts. The ilr basis is an orthonormal basis of the clr-plane and
provides D - 1 coordinates. The same basis is sometimes referred to as
an orthonormal log-ratio (olr) basis.
ilr_basis(dim, type = "default")
olr_basis(dim, type = "default")
dim |
Number of parts. It can be:
|
type |
Type of ilr basis to construct. Available options are:
|
For 'type = "default"', the function returns the standard Helmert-type ilr basis. Alternative constructions are available through 'type = "pivot"' and 'type = "cdp"'.
The default basis vectors are:
h_i = \sqrt{\frac{i}{i+1}}
\log \frac{\sqrt[i]{\prod_{j=1}^i x_j}}{x_{i+1}},
\qquad i = 1, \ldots, D - 1
A matrix with D rows and D - 1 columns representing an
orthonormal log-ratio basis.
Egozcue, J. J., Pawlowsky-Glahn, V., Mateu-Figueras, G., & Barceló-Vidal, C. (2003). Isometric logratio transformations for compositional data analysis. Mathematical Geology, 35(3), 279–300.
ilr_basis(5)
ilr_basis(alimentation[, 1:9])
ilr_basis(c("a", "b", "c", "d"), type = "pivot")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.