wilson.ci {npsm} | R Documentation |
Wilson (score) confidence interval for a population proportion.
wilson.ci(x, n, conf.level = 0.95)
x |
number of events |
n |
number of samples |
conf.level |
confidence level |
Uses defintion in Agresti.
conf.int |
estimated confidence interval |
John Kloke, Joseph McKean
Agresti (2002), Categorical data analysis, New York: John Wiley & Sons, Inc.
n <- 100
x <- rbinom(1,n,0.33)
wilson.ci(n,x)