betageomUC.RdDensity, distribution function, and random generation for the beta-geometric distribution.
dbetageom(x, shape1, shape2, log = FALSE)
pbetageom(q, shape1, shape2, log.p = FALSE)
rbetageom(n, shape1, shape2)dbetageom gives the density,
pbetageom gives the distribution function, and
rbetageom generates random deviates.
The beta-geometric distribution is a geometric distribution whose
probability of success is not a constant but it is generated
from a beta distribution with parameters shape1 and
shape2. Note that the mean of this beta distribution
is shape1/(shape1+shape2), which therefore is the mean
of the probability of success.
pbetageom can be particularly slow.