Learn R Programming

serieslcb (version 0.4.0)

madansky: Madansky's method

Description

Calculate a binomial series lower confidence bound using Madansky's (1965) method.

Usage

madansky(s, n, alpha, use.backup = FALSE, backup.method, ...)

Arguments

s

Vector of successes.

n

Vector of sample sizes.

alpha

The significance level; to calculate a 100(1-\(\alpha\))% lower confidence bound.

use.backup

If TRUE, then a backup.method in the will be used for the methods with calculate LCB = 1 in the case of no failures across all components. If FALSE (default), no backup.method is used.

backup.method

The backup method which is used for the methods which calculate LCB = 1 in the case of zero failures. Use function name.

...

Additional arguments to be ignored.

Value

The 100(1-\(\alpha\))% lower confidence bound. Note that if there are zero observed failures across all components, the output is LCB = 0.

Examples

Run this code
# NOT RUN {
madansky(s=c(35, 97, 59), n=c(35, 100, 60), alpha=.10)
# }

Run the code above in your browser using DataLab