
Confidence interval for population size (N) in hypergeometric distribution.
Source:R/CIDists.R
hyperCI.RdComputes a confidence interval for population size (N) in hypergeometric distribution.
Details
This is an inefficient brute-force algorithm. The algorithm computes the conf.level range of possible values for m, as if it was unknown, for a large range of values of N. It then finds all possible values of N for which m was in the conf.level range. The smallest and largest values of N for which m was in the conf.level range are the CI endpoints.
Author
Derek H. Ogle, DerekOgle51@gmail.com