Learn R Programming

pbox (version 0.1.8)

probCI,numeric-method: Method to calculate confidence intervals for a vector of probabilities

Description

This method calculates the lower and upper bounds of the confidence interval for each element in the input vector of probabilities using the given alpha level.

Usage

# S4 method for numeric
probCI(probabilities, alpha = 0.05)

Value

A numeric vector containing the lower and upper quantile bounds for each probability in the input vector.

Arguments

probabilities

A numeric vector of probabilities.

alpha

A numeric value specifying the significance level for the confidence intervals; defaults to 0.05.