Description Usage Arguments Value References Examples
Calculates the binomial confidence interval from a sample, using the normal approximation. Uses Louis (1981) if only failures or only successes were observed.
1 |
x |
A vector of 0s and 1s, or (if |
y |
A scalar, the number of failures, default |
na.rm |
A logical, whether to remove NAs from the data, default |
alpha |
A scalar, the desired confidence level, default |
prob |
A logical, whether to output results as probabilities,
default |
A named vector with the Mean
, lower and upper confidence limits
(L
and U
), and the number of observations N
.
Thomas A. Louis. 1981. Confidence intervals for a binomial parameter after observing no successes. The American Statistician 35(3):154. http://amstat.tandfonline.com/doi/abs/10.1080/00031305.1981.10479337?journalCode=utas20#.U3t2EvldX64
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.