ucControl: Algorithm variables used by uncondExact2x2.

View source: R/uncondExact2x2.R

ucControlR Documentation

Algorithm variables used by uncondExact2x2.

Description

Function that gives list of algorithm variables used by uncondExact2x2.

Usage

ucControl(nCIgrid = 500, errbound = 0, nPgrid = 100, 
   power2 = 20, maxPgridRatio = 1 - 10^-6, 
   minPgridRatio = 10^-6)

Arguments

nCIgrid

number of elements in the grid search for the confidence interval.

errbound

Used with large sample sizes to speed calculations, only calculate univariate binomial distribution in the middle part, exclude both tails with less than errbound/2 in each tail. When errbound=0, calculate the full distributions.

nPgrid

number of elements to search over the null parameter space.

power2

how precise to make the grid search for the confidence interval when using the ‘faster’ algorithm (e.g., when method='user-fixed').

maxPgridRatio

maximum binomial probability for the search over the null nuisance parameter space, when parmtype='ratio' or 'oddsratio'

minPgridRatio

maximum binomial probability for the search over the null nuisance parameter space, when parmtype='ratio' or 'oddsratio'

Value

A LIST of all the named elements (see arguments to call).

Examples

ucControl(errbound=10^-5)

exact2x2 documentation built on Feb. 16, 2023, 10:11 p.m.