shift {philr} | R Documentation |
Shift must be applied before transformation
shiftp(x, p) shiftpInv(y, p)
x |
closed compositional data matrix (or vector) |
p |
weights (should not be closed) |
y |
the shifted composition output by |
shifted data matrix y
(no closure is applied) rows are
samples, columns are parts
Justin Silverman & J. J. Egozcue
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
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)