wilson.ci {npsm} | R Documentation |
Wilson (score) confidence interval for a population proportion.
Description
Wilson (score) confidence interval for a population proportion.
Usage
wilson.ci(x, n, conf.level = 0.95)
Arguments
x |
number of events |
n |
number of samples |
conf.level |
confidence level |
Details
Uses defintion in Agresti.
Value
conf.int |
estimated confidence interval |
Author(s)
John Kloke, Joseph McKean
References
Agresti (2002), Categorical data analysis, New York: John Wiley & Sons, Inc.
See Also
Examples
n <- 100
x <- rbinom(1,n,0.33)
wilson.ci(n,x)
[Package npsm version 2.0.0 Index]