powered by
Calculates the two-sided Clopper-Pearson exact confidence interval for a binomial proportion.
exactci(r, n, conflev)
A numeric vector of length two containing the lower and upper confidence limits.
A scalar integer. The number of successes or responses.
A scalar integer. The total number of trials or subjects.
A scalar numeric. The desired confidence level (e.g., 0.95 for a 95% CI).
exactci(r=4, n=20, conflev=0.95)
Run the code above in your browser using DataLab