powered by
Implements the method of moments approximation for the sum of arbitrary NB random variables. Called by other functions. Not intended to be run alone.
nb_sum_moments(mus, phis, counts)
A numeric vector of probability densities.
Vector of individual mean values.
Vector of individual dispersion parameters. Equivalent to 'size' in dnbinom.
The vector of counts over which the PMF is evaluated.
nb_sum_moments(mus = c(100, 10), phis = c(5, 8), counts = 0:500)
Run the code above in your browser using DataLab