powered by
Calculates the confidence interval around a vector of probabilities using the quantiles based on the specified significance level.
probCI(probabilities, alpha=0.05)
A list containing the lower and upper bounds of the confidence intervals for each probability.
A numeric vector of probabilities for which the confidence interval is desired.
The significance level used for constructing the confidence interval; default is 0.05.
probabilities <- c(0.1, 0.2, 0.3, 0.4, 0.5) probCI(probabilities) probCI(probabilities, alpha = 0.1)
Run the code above in your browser using DataLab