WhyperCI_N_upper {ExactCIone}R Documentation

An Admissible Exact One-sided Upper Interval for the Population Number of Hypergeometric Distribution

Description

The 1-alpha Clopper-Pearson type upper interval for the population number of hypergeometric distribution.

Usage

WhyperCI_N_upper(x, n, M, conf.level, details = FALSE)

Arguments

x

integer representing the number of white balls we observed when drawn without replacement from an urn which contains both black and white balls.

n

the number we drawn.

M

the number of the white balls.

conf.level

the confidence level of confidence interval.

details

TRUE/FALSE, can be abbreviate. Default is FALSE. If choose TRUE, the confidence intervals for the whole sample space will be returned.

Value

a list which contains the confidence interval.

References

Konijn, H. S. (1973). Statistical Theory of Sample Survey Design and Analysis, Amsterdam: North-Holland.

Examples

WhyperCI_N_upper(0,50,800,0.95,details=TRUE)
WhyperCI_N_upper(0,50,800,0.95)

[Package ExactCIone version 1.0.5 Index]