View source: R/binom.conf.exact.R
| binom.conf.exact | R Documentation |
Computes an exact two-sided Clopper-Pearson confidence interval for a binomial proportion by inverting the binomial test.
binom.conf.exact(x, n, alpha = 0.05)
x |
Integer. Number of observed successes. |
n |
Integer. Total number of trials. |
alpha |
Numeric. Significance level for the confidence interval.
The default is |
A named numeric vector with three elements:
Observed proportion, x / n.
Lower confidence limit.
Upper confidence limit.
binom.conf.exact(x = 8, n = 10)
binom.conf.exact(x = 50, n = 100, alpha = 0.01)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.