binLikSI: Binomial support interval calculation

Description Usage Arguments Value Author(s) Examples

View source: R/binLikSI.R

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

1
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

si

The desired support interval

conf.equiv

The estimated confidence level of the SI

Author(s)

Derek Smith

Examples

1
2
3
set.seed(10)
binLikSI(dat=4, n=10, level=9)
binLikSI(dat=4, n=10, level=8, conf=TRUE)

supportInt documentation built on May 2, 2019, 6:32 a.m.