shift: Shift data to origin given by p

shiftR Documentation

Shift data to origin given by p

Description

Shift must be applied before transformation

Usage

shiftp(x, p)

shiftpInv(y, p)

Arguments

x

closed compositional data matrix (or vector)

p

weights (should not be closed)

y

the shifted composition output by shiftp

Value

shifted data matrix y (no closure is applied) rows are samples, columns are parts

Author(s)

Justin Silverman & J. J. Egozcue

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

p <- seq(.1,1,by=.2)
c <- t(rmultinom(10,100,c(.1,.6,.2,.3,.2))) + 0.65   # add a small pseudocount
x <- miniclo(c)
shiftp(x, p)

jsilve24/philr documentation built on Oct. 17, 2024, 4:59 p.m.