View source: R/proportionality.R
pluginVariation | R Documentation |
Estimates the variation matrix of count-compositional data
based on a the same approximation used in logitNormalVariation()
only for this function it uses empirical estimates of mu and Sigma.
Also performs zero-imputation using cmultRepl()
from the zCompositions
package.
pluginVariation(
counts,
type = c("standard", "phi", "phis", "rho"),
order = c("second", "first"),
impute.zeros = TRUE,
...
)
counts |
Matrix of counts; samples are rows and features are columns. |
type |
Type of variation metric to be calculated: |
order |
The order of the Taylor-series approximation to be used in the estimation |
impute.zeros |
If TRUE, then |
... |
Optional arguments passed to zero-imputation function |
An estimate of the requested metric of proportionality.
data(singlecell)
pluginVariation(singlecell)
pluginVariation(singlecell, type="phi")
pluginVariation(singlecell, type="rho")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.