This function produces a list of tuning parameters used in the calculations done by binom.exact
and poisson.exact. These will not need to be changed by most ordinary users.
binomControl(relErr=1+1e-07,tol=.00001,
pRange=c(1e-10,1-1e-10),
minn=1, maxn=10^4,
PRINT.STEPS=FALSE)value very close to 1, used in calculation of two-sided p-values
value very close to 0, used in calculation of two-sided confidence intervals
range close to [0,1], but excluding the endpoints, used in calculation of two-sided confidence intervals
minimum n used by powerBinom. The search for the lowest n that gives power is crude and goes from minn to maxn by ones.
maximum n used by powerBinom
logical, print steps of uniroot.integer used to find the n when type='cilength' in powerBinom?
A list with containing the following components:
a number larger than 1
a number greater than 0
a vector with 2 elements between 0 and 1, exclusive
See the code for fisher.test, where the term relErr is hard-coded into the function. The purpose
is to avoid problems with ties. It serves the same purpose in this package and probably need not be changed.
The value tol indicates the tolerance for the precision of the confidence limits.
The value pRange is input into uniroot to give bounds when searching for confidence limits. For poisson
limits pRange is transformed using the qgamma function (see code in exactpoissonCI).