Usage
fdr1d(xdat, grp, test, p0, nperm = 100, nr = 50, seed = NULL, null = NULL, zlim = 1, sv2 = 0.01, err = 1e-04, verb = TRUE, ...)
Arguments
xdat
the matrix of expression values, with genes as rows and samples as columns
grp
a grouping variable giving the class membership of each sample, i.e. each column in xdat
test
a function that takes xdat
and grp
as the first two
arguments and returns the test statistic; by default, two-sample t-statistics are calculated.
p0
if supplied, an estimate for the proportion of non-differentially expressed genes; if not supplied, the routine will estimate it, see Details.
nperm
number of permutations for establishing the null distribution of the t-statistic
nr
the number of equidistant breaks into which the range of test statistics is broken for calculating the fdr.
seed
if specified, the random seed from which the permuations are
started
null
optional argument for passing in a pre-calculated null distribution, see Details.
zlim
if no p0
is specified, the ratio of densities in the range of test statistics between -zlim
and zlim
will be used to estimate the proportion of non-differentially expressed genes; ignored if p0
is specified.
sv2
positive number controlling the initial degree of smoothing for the densities involved, with smaller values indicating more smoothing; see Details.
err
positive number controlling the convergence of the smoothing procedure, with smaller values implying more iterations; see Details.
verb
logical value indicating whether provide extra information.
...
extra arguments to function test
.