Calculate Binomial Tail Probabilities
iscambinomprob.Rd
binomprob
calculates the probability of the number of success of interest
using a binomial distribution and plots the distribution.
Examples
iscambinomprob(k = 5, n = 20, prob = 0.4, lower.tail = TRUE)
#> Probability 5 and below = 0.125599
#> [1] 0.125599
iscambinomprob(k = 15, n = 30, prob = 0.3, lower.tail = FALSE)
#> Probability 15 and above = 0.01693731
#> [1] 0.01693731
iscambinomprob(k = 22, n = 25, prob = 0.9, lower.tail = TRUE)
#> Probability 22 and below = 0.4629059
#> [1] 0.4629059