Description Usage Arguments Details Value References See Also Examples
Calculates confidence intervals for binomial counts or proportions
1 2 |
x |
Number of successes in n trials, can be a vector. |
n |
Number of Bernoulli trials, can be a vector. |
conf.level |
Confidence level (default = 0.95), can be a vector. |
type |
Possible values are "wilson", "exact" and "approximate". See details. |
binom.CI
with type "exact", calculates exact confidence intervals for binomial counts or proportions. This function uses R's binom.test
function; however, the arguments to this function can be numeric vectors of any length.
binom.CI
with type "wilson", calculates confidence intervals for binomial counts or proportions using Wilson's formula which approximate the exact method. The arguments to this function can be numeric vectors of any length.
binom.CI
with type "approximate" calculates confidence intervals for binomial counts or proportions using a normal approximation to the binomial distribution. The arguments to this function can be numeric vectors of any length.
This function is a clone from epitools binomial confidence intervals functions, but with a wrapper to include the method as an option instead of separate functions.
This function returns a n x 6 matrix with the following colnames:
x
Number of successes in n trials
n
Number of Bernoulli trials
prop
Proportion = x / n
lower
Lower confidence interval limit
upper
Upper Confidence interval limit
conf.level
Confidence level
Tomas Aragon, et al. Applied Epidemiology Using R.
Kenneth Rothman (2002), Epidemiology: An Introduction, Oxford University Press, 1st Edition.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.