This function takes binomial data and using a root finding algorithm to calculate the support interval at the user's specified level. If conf=T, the function will attempt to estimate the confidence level of the support interval using a modified parametric bootstrap approach.
Usage
binLikSI(dat, n, level, tol = 0.001, conf = F, B = 500)
Arguments
dat
number of success in binomial experiment
n
number of trials in binomial experiment
level
desired support level
tol
tolerance passed to uniroot for finding SI endpoints
conf
Logical, whether or not bootstrap should be performed to estimate confidence level