cmultRepl2 | R Documentation |
cmultRepl2
replaces the zeros for a matrix where each row is
compositional
cmultRepl2(x, zero.rep = "bayes")
x |
a |
zero.rep |
if "bayes" the Bayesian - Multiplicative treatment
implemented in |
The initial matrix after the zero - replacement normalized so that each sample's composition sums one.
# Load the count matrix (with zeros)
x <- HIV[,1:60]
# Zero replacement
x.non0 <- cmultRepl2(x, zero.rep = "bayes")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.