This function simply computes confidence intervals for proportions.
confIntProp(x, n, conf.level = 0.95)
The number of 'successes', i.e. the number of events, observations, or cases that one is interested in.
The total number of cases or observatons.
The confidence level.
This function is the adapted source code of
binom.test. Ir uses
pbeta, with some lines of code taken from the
binom.test source. Specifically, the count for the low category is specified as first 'shape argument' to
pbeta, and the total count (either the sum of the count for the low category and the count for the high category, or the total number of cases if
FALSE) minus the count for the low category as the second 'shape argument'.
The confidence interval bounds in a twodimensional matrix, with the first column containing the lower bound and the second column containing the upper bound.
binom.test; adapted by Gjalt-Jorn Peters)
Maintainer: Gjalt-Jorn Peters <[email protected]>
1 2 3 4 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.