forwsimDiffExpr
.
seqBoundariesGrid(b0, b1, forwsim, samplingCost, powmin = 0, f = "linear", ineq = "less")
data.frame
with forward simulation output, such
as that returned by the function forwsimDiffExpr
. It must have
columns named simid
, time
, u
, fdr
,
fnr
, power
and summary
. See
forwsimDiffExpr
for details on the meaning of each column.b0
, b1
satisfying power>=powermin (if such b0
,b1
exists). b0+b1*time
. For 'invsqrt', the boundary is
b0+b1/sqrt(time)
, where time is the sample size measured as
number of batches. ineq=='less'
the trial stops when summary
is below
the stopping boundary. This is appropriate whenever summary
measures the potential benefit of obtaining one more data batch. For
ineq=='greater'
the trial stops when summary
is above
the stopping boundary. This is approapriate whenever summary
measures the potential costs of obtaining one more data batch.b
), estimated expected
utility (u
), false discovery rate (fdr
), false
negative rate (fnr
), power (power
) and the expected
sample size measured as the number of batches (time
).data.frame
with all evaluated boundaries (columns b0
and b1
) and their respective estimated expected utility,
false discovery rate, false negative rate, power and expected sample
size (measured as the number of batches).powmin
.
Here power is defined as the expected number of true discoveries
divided by the expected number of differentially expressed entities.The routine evaluates the expected utility, as well as expected FDR, FNR, power and sample size for each specified boundary, and also reports the optimal boundary.
forwsimDiffExpr