powered by
Wilson (score) confidence interval for a population proportion.
wilson.ci(x, n, conf.level = 0.95)
estimated confidence interval
number of events
number of samples
confidence level
John Kloke, Joseph McKean
Uses defintion in Agresti.
Agresti (2002), Categorical data analysis, New York: John Wiley & Sons, Inc.
prop.test
n <- 100 x <- rbinom(1,n,0.33) wilson.ci(n,x)
Run the code above in your browser using DataLab