Learn R Programming

FixSeqMTP (version 0.1.2)

bisection.FDR: Bisection algorithm (FDR)

Description

Bisection algorithm to find the solution for the adjusted p-value for FDR controlling g-FSMTPs.

Usage

bisection.FDR(f, a=0, b=1, p, k, j, n = 1000, tol)

Arguments

f
the objective function to be optimized for the solution.
a
mininum of the interval which contains the solution from bisection algorithm.
b
maxinum of the interval which contains the solution from bisection algorithm.
p
numeric vector of p-values (possibly with NAs). Any other R is coerced by as.numeric. Same as in p.adjust.
k
pre-specified number of acceptances allowed in the testing procedure (cannot exceed the length of p)
j
the index of the hypothesis.
n
the number of sections that the interval which from bisection algorithm.
tol
the desired accuracy.

Value

a solution of the objective function which is between the interval from a to b.

See Also

bisection.FWER