

   TThhee BBeettaa BBiinnoommiiaall DDiissttrriibbuuttiioonn

        dbetabinom(y, n, m, s)
        pbetabinom(q, n, m, s)

   AArrgguummeennttss::

          y: vector of frequencies

          q: vector of quantiles

          n: vector of totals

          m: vector of probabilities

          s: vector of overdispersion parameters

   VVaalluuee::

        These functions provide information about the beta
        binomial distribution with parameters `m' and `s'.
        `dbetabinom' gives the density and `pbetabinom' gives
        the distribution function.

        The beta binomial distribution with total = n and
        `prob' = m has density

        p(y) = B(y+s m,n-y+s (1-m)) Choose(n,y) / B(s m,s (1-m))

        for y = 0, ..., n where B() is the beta function.

   AAuutthhoorr((ss))::

        J.K. Lindsey

   SSeeee AAllssoo::

        `dbinom' for the binomial, `ddoublebinom' for the dou-
        ble binomial, and `dmultbinom' for the multiplicative
        binomial distribution.

   EExxaammpplleess::

        # Compute P(45 < y < 55) for y beta binomial(100,0.5,1.1)
        sum(dbetabinom(46:54, 100, 0.5, 1.1))
        pbetabinom(54,100,0.5,1.1)-pbetabinom(45,100,0.5,1.1)

