Description Usage Arguments Value References Examples
This function iteratively solves for the upper and lower confidence interval bounds for the probability of success for a poisson sample.
1 | poissonci(s, n, theta1, theta2, value, maxstp = 100, eps = 1e-05)
|
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 |
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
Hogg, R. McKean, J. Craig, A. (2018) Introduction to Mathematical Statistics, 8th Ed. Boston: Pearson.
1 2 3 4 5 6 | s <- 125
n <- 25
theta1 <- 5.5
theta2 <- 6
value <- .05
poissonci(s, n, theta1, theta2, value)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.