probCI {pbox} | R Documentation |
Probability Confidence Interval
Description
Calculates the confidence interval around a vector of probabilities using the quantiles based on the specified significance level.
Usage
probCI(probabilities, alpha=0.05)
Arguments
probabilities |
A numeric vector of probabilities for which the confidence interval is desired. |
alpha |
The significance level used for constructing the confidence interval; default is 0.05. |
Value
A list containing the lower and upper bounds of the confidence intervals for each probability.
Examples
probabilities <- c(0.1, 0.2, 0.3, 0.4, 0.5)
probCI(probabilities)
probCI(probabilities, alpha = 0.1)
[Package pbox version 0.1.8 Index]