Description Usage Arguments Value Examples
The initialization performs quick optimization of the parameters with several simplifying assumptions compared to the true model: non-zero counts are models as log-Gaussian, zeros are modeled as dropouts. The dispersion parameter is not modified.
1 2 3 4 5 6 7 | zinbInitialize(
m,
Y,
nb.repeat = 2,
it.max = 100,
BPPARAM = BiocParallel::bpparam()
)
|
m |
The model of class ZinbModel |
Y |
The matrix of counts. |
nb.repeat |
Number of iterations for the estimation of beta_mu and gamma_mu. |
it.max |
Maximum number of iterations in softImpute. |
BPPARAM |
object of class |
An object of class ZinbModel similar to the one given as argument with modified parameters alpha_mu, alpha_pi, beta_mu, beta_pi, gamma_mu, gamma_pi, W.
1 2 3 4 5 6 7 | Y <- matrix(rpois(60, lambda=2), 6, 10)
bio <- gl(2, 3)
time <- rnorm(6)
gc <- rnorm(10)
m <- zinbModel(Y, X=model.matrix(~bio + time), V=model.matrix(~gc),
which_X_pi=1L, which_V_mu=1L, K=1)
m <- zinbInitialize(m, Y, BPPARAM=BiocParallel::SerialParam())
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.