Usage
sim.dat(G = 10000, pi0 = 0.75, gamma2 = 1, n1 = 5, n2 = n1,
errdist = rnorm, effdist = function(g, gamma2)
rnorm(g, , sqrt(gamma2)), ErrArgs, EffArgs)Arguments
G
a numeric positive integer, the number of genes
pi0
a numeric value between 0 and 1, the proportion of non-differentially expressed genes.
gamma2
a positive value, which is always the second argument passed to effdist.
If the nonzero standardized effect sizes have a zero normal distribution, this is the variance
of this distribution. The larger it is, the larger the mean absolute
n1
a positive integer, the sample size in treatment group 1.
n2
a positive integer, the sample size in treatment group 2.
errdist
a function, which simulate K random errors, where K is the first argument of errdist. The second argument is always ErrArgs, if it is not missing.
effdist
a function, which simulate G1 standardized effect sizes, where G1 is the first argument of effdist. The second argument is always gamma2. The third argument is always EffArgs, if it is not m
ErrArgs
a list of additional arguments used by errdist.
EffArgs
a list of additional arguments used by effdist.