poisLikSI: Poisson support interval calculation

Description Usage Arguments Value Author(s) Examples

View source: R/poisLikSI.R

Description

This function takes Poisson 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 parametric bootstrap approach.

Usage

1
poisLikSI(dat, level, tol = 0.001, conf = F, B = 500)

Arguments

dat

Numeric; outcome from a Poisson experiment

level

Desired support level

tol

tolerance argument passed to uniroot for finding SI endpoints

conf

Logical; Whether or not to simulate the confidence level of the SI

B

Number of simulations to determine coverage if conf=T

Value

si

1/level support interval

conf.equiv

estimated confidence level of interval returned

Author(s)

Derek Smith

Examples

1
2
poisLikSI(4, 8)
poisLikSI(4, 8, conf=TRUE)

supportInt documentation built on May 29, 2017, 7:49 p.m.