buildilrBasep: Weighted ILR Contrast Matrix

Description Usage Arguments Value Author(s) References Examples

View source: R/weighted_ILR.R

Description

Weighted ILR Contrast Matrix

Usage

1

Arguments

W

sequantial binary partition matrix (e.g., signary matrix; output of phylo2sbp)

p

weights (should not be closed)

Value

matrix

Author(s)

Justin Silverman (adapted from compositions::gsi.buildilrBase)

References

J. J. Egozcue, V. Pawlowsky-Glahn (2016) Changing the Reference Measure in the Simplex and its Weighting Effects. Austrian Journal of Statistics 45(4):25-44

Examples

1
2
3
4
p <- seq(.1,1,by=.2)
tr <- named_rtree(5)
sbp <- phylo2sbp(tr)
buildilrBasep(sbp, p)

Example output

           n1         n2         n3         n4
t3  1.4491377  2.7386128  0.0000000  0.0000000
t2  1.4491377 -0.9128709  0.0000000  0.0000000
t5 -0.2760262  0.0000000  0.5976143  1.0801234
t4 -0.2760262  0.0000000  0.5976143 -0.7715167
t1 -0.2760262  0.0000000 -0.7968191  0.0000000

philr documentation built on Nov. 8, 2020, 5:38 p.m.