nb_sum_moments {nbconv} | R Documentation |
Method of moments
Description
Implements the method of moments approximation for the sum of arbitrary NB random variables. Called by other functions. Not intended to be run alone.
Usage
nb_sum_moments(mus, phis, counts)
Arguments
mus |
Vector of individual mean values. |
phis |
Vector of individual dispersion parameters. Equivalent to 'size' in dnbinom. |
counts |
The vector of counts over which the PMF is evaluated. |
Value
A numeric vector of probability densities.
Examples
nb_sum_moments(mus = c(100, 10), phis = c(5, 8), counts = 0:500)
[Package nbconv version 1.0.1 Index]