Learn R Programming

ISCAM (version 1.0.0)

iscaminvbinom: Inverse Binomial Probability

Description

Inverse Binomial Probability

Usage

iscaminvbinom(alpha, n, prob, lower.tail, verbose = TRUE)

Value

numeric which achieves at most the stated probability

Arguments

alpha

The probability of interest.

n

The number of trials.

prob

The probability of success.

lower.tail

Boolean for finding the probability above (FALSE) or below (TRUE) the inputted value (inclusive)

verbose

Logical, defaults to TRUE. Set to FALSE to suppress messages

Examples

Run this code
iscaminvbinom(alpha = 0.05, n = 30, prob = 0.5, lower.tail = TRUE)

iscaminvbinom(alpha = 0.05, n = 30, prob = 0.5, lower.tail = FALSE)

iscaminvbinom(alpha = 0.01, n = 60, prob = 0.10, lower.tail = FALSE)

Run the code above in your browser using DataLab