Learn R Programming

supportInt (version 1.1)

binLikSI: Binomial support interval calculation

Description

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
B
Number of bootstraps to be performed

Value

Examples

Run this code
set.seed(10)
binLikSI(dat=4, n=10, level=9)
binLikSI(dat=4, n=10, level=8, conf=TRUE)

Run the code above in your browser using DataLab