The nbconv R package provides three methods to evaluate arbitrary negative binomial convolutions, including exact, saddlepoint, and method of moments…
The nbconv R package implements three distinct methods for evaluating the sums of arbitrary negative binomial distributions: Furman's exact probability mass function, saddlepoint approximation, and method of moments approximation. It provides functions to calculate density, distribution, and quantile functions, generate random deviates, and compute summary statistics such as mean, variance, skewness, and excess kurtosis.
The package is available on CRAN, authored by Gregory Bedwell, and was published on July 6, 2023. It supports parallel computation and allows customization of terms, cores, and tolerance for accurate evaluation of convolutions.
| Furman's exact PMF | Furman's exact probability mass function |
|---|---|
| Saddlepoint approximation | Saddlepoint approximation |
| Method of moments approximation | Method of moments approximation |
| Mean | mean |
Functions are provided to calculate the density function of the convolutions.
Calculates the PMF for the convolution of arbitrary negative binomial random variables.
Implements Furman’s exact PMF for the evaluation of the sum of arbitrary NB random variables.
Generates random samples from the convolution of arbitrary negative binomial random variables.