| ci_proportion | R Documentation |
calculate ci for proportion
ci_proportion(x, n = NULL, conf.level = 0.95)
x |
vector of positive integers representing the number of occurrences of each class, or number of successes(n is needed) |
n |
number of trials. |
conf.level |
confidence level, defaults to 0.95. |
A vector with 3 elements for estimate, lower confidence interval and upper for the upper one.
ci_proportion(c(2,3,4)) ci_proportion(x = 37, n = 43)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.