array_lr_transforms: Log-Ratios Transforms for Arrays

Description Usage Arguments Details Value Examples

Description

Extension of base_lr_transforms to arrays over arbitrary margins.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
glr_array(x, V, parts, dimname = colnames(V))

glrInv_array(y, V, coords, dimname = rownames(V))

alr_array(x, d = dim(x)[parts], parts)

alrInv_array(y, d = dim(y)[coords] + 1, coords)

ilr_array(x, V = NULL, parts)

ilrInv_array(y, V = NULL, coords)

clr_array(x, parts)

clrInv_array(y, coords)

Arguments

x

multidimensional array in simplex

V

transformation matrix (defines transform)

parts

index of dimension of x that represents parts (e.g., compositional variables)

dimname

character vector of dimension name for resulting dimension after transformation

y

multidimensional array in transformed space

coords

index of dimension of x that represents coords (e.g., transformed variables)

d

for ALR, which component (integer position) to take as reference (default is ncol(x)) for alrInv corresponds to column position in untransformed matrix.

Details

accelerated for parts OR coords == 1

Value

array

Examples

1
2
3
a <- array(1:100, dim=c(10, 5, 2))
a <- miniclo_array(a, parts=2)
clr_array(a, parts=2)

jsilve24/driver documentation built on Jan. 30, 2022, 12:07 p.m.