Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/SimuFunctions.R
This function is developed based on R's rnbinom() function.
nus = list(nu1, nu2, nu3)
are the vectors of mean counts in the three groups.
ns = c(n1, n2, n3)
are the sample sizes in the three groups.
kappa
and a
are two shape parameters in the NBP model.
l
and u
are the lower and upper bounds (uniform distribution) of simulated sample specific noise.
1 |
nus |
|
ns |
|
kappa |
The first shape parameter. |
a |
The second shape parameter. |
l |
Lower bound of uniform distribution of simulated sample specific noise alpha_j. |
u |
Upper bound of uniform distribution of simulated sample specific noise alpha_j. |
An NBP distribution is an integer-valued distribution with three parameters, the location parameter mu
, and two shape parameters kappa
and a
. The mean and variance of X ~ NBP(mu, kappa, a) are:
E(X) = mu
Var(X) = mu + mu*kappa^a
Note that the NBP distribution describes a nonlinear relationship between the mean and variance of genes. Other technical details of the NBP distribution, such as the probability density function and its relationship with the negative binomial (NB) distribution are not covered here.
This function returns a count matrix Y
simulated by the scheme discussed above.
Yuhang Liu, Xing Qiu, Jinfeng Zhang, and Zihan Cui
SIM1, SIM2, SIM3
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.