Learn R Programming

pbox (version 0.1.8)

probCI: 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)

Value

A list containing the lower and upper bounds of the confidence intervals for each probability.

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.

Examples

Run this code
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