# 10 random variables of a fractional binomial distribution.
rfrbinom(n=10, size=50, prob=.6, h=.8, c=.2)
# The probability that the fractional binomial random variable equals 22.
dfrbinom(x=22, size=50, prob=.6, h=.8, c=.2)
# The probability that the fractional binomial random variable is less than or equal to 22.
pfrbinom(x=22, size=50, prob=.6, h=.8, c=.2)
# The 80th percentile of the fractional binomial distribution.
qfrbinom(p=.8, size=50, prob=.6, h=.8, c=.2)
Run the code above in your browser using DataLab