The gambin R package

CircleCI Downloads CRAN
Downloads CRAN Codecov test

This package fits the gambin distribution to species-abundance distributions from ecological data. ‘gambin’ is short for ‘gamma-binomial’. The main functions are fit_abundances, which estimates the alpha parameter of the gambin distribution using maximum likelihood, and mult_abundances which estimates alpha for multiple sites / samples after standardising for the number of individuals. Recent functions are also provided to generate the gambin distribution and for calculating likelihood statistics. The package now provides functionality to fit multimodal gambin distributions.

The package is currently on CRAN and can be installed via


Alternatively, you can install the developmental version via


Try the gambin package in your browser

Any scripts or data that you put into this service are public.

gambin documentation built on April 17, 2021, 1:06 a.m.