binomTest | R Documentation |
Generates lower and upper confidence interval limits for a binomial proportion using different types of confidence intervals.
binomTest(n, x,
alpha = 0.05,
intervalType = "Clopper-Pearson")
n |
sample size |
x |
number of successes |
alpha |
significance level for confidence interval |
intervalType |
type of confidence interval used; either "Clopper-Pearson", "Wald", "Wilson-Score", "Jeffreys", "Agresti-Coull", "Arcsine", or "Blaker" |
Generates a lower and upper confidence interval limit for a binomial proportion using
various types of confidence intervals,
various sample sizes, and
various numbers of successes.
When the binomTest
function is called, it returns a two-element vector in which
the first element is the lower bound of the confidence interval, and
the second element is the upper bound of the confidence interval.
This confidence interval is constructed by calculating lower and upper bounds associated with the confidence interval procedure specified by the intervalType
argument. Lower bounds that are negative are set to 0 and upper bounds that are greater than 1 are set to 1.
Hayeon Park (hpark031@gmail.com), Larry Leemis (leemis@math.wm.edu)
dbinom
binomTest(10, 6)
binomTest(100, 30, intervalType = "Agresti-Coull")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.