poissonci: Confidence Interval for mean of of a Poisson Distribution

Description Usage Arguments Value References Examples

Description

This function iteratively solves for the upper and lower confidence interval bounds for the probability of success for a poisson sample.

Usage

1
poissonci(s, n, theta1, theta2, value, maxstp = 100, eps = 1e-05)

Arguments

s

a number, the number of events that have occured calculted as n * xbar

n

a number, the size

theta1

a number n*theta1 is a mean and the lower bracket for the solution, must be positive.

theta2

a number n*thata2 is a mean and the upper bracket for the solution, must be larger than theta1

value

a number the target distribution function

maxstp

an integer default is 100, the amount of times the solution is narrowed down

eps

a number default is .00001, the smallest difference in theta1 and theta2 as they are updated

Value

a list with solution and valatsol (value at solution)

solution a floating point number, the actual confidence interval

valatsol a floating point number, the actual distribution function solution is found at

References

Hogg, R. McKean, J. Craig, A. (2018) Introduction to Mathematical Statistics, 8th Ed. Boston: Pearson.

Examples

1
2
3
4
5
6
s <- 125
n <- 25
theta1 <- 5.5
theta2 <- 6
value <- .05
poissonci(s, n, theta1, theta2, value)

austinragotzy/mathstat documentation built on May 13, 2019, 11:30 a.m.