wilson.ci | 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.
prop.test
n <- 100
x <- rbinom(1,n,0.33)
wilson.ci(n,x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.