binomprob
calculates the probability of the number of success of interest
using a binomial distribution and plots the distribution.
Usage
binomprob(k, n, prob, lower.tail)
Arguments
- k
number of successes of interest.
- n
number of trials.
- prob
success probability. Numeric between 0 & 1.
- lower.tail
Boolean for finding the probability above (FALSE) or below (TRUE) the inputted value (inclusive)
Value
The probability of the binomial distribution along with a graph of the distribution.