Learn R Programming

The gambin R package

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

install.packages("gambin")

Alternatively, you can install the developmental version via

devtools::install_github("txm676/gambin")

Copy Link

Version

Install

install.packages('gambin')

Monthly Downloads

226

Version

2.5.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Thomas Matthews

Last Published

April 16th, 2021

Functions in gambin (2.5.0)

categ

Simulated bird SAD dataset with species classification data
fit_abundances

Fit a unimodal or multimodal gambin model to a species abundance distribution
AIC.gambin

Likelihood statistics for the GamBin model
dgambin

The mixture gambin distribution
moths

Williams' Rothamsted moth data
fly

Brazilian Horse Fly Data
create_octaves

Reclassify a vector of species' abundances into abundance octaves
gambin-package

Fit the gambin model to species abundance distributions
deconstruct_modes

Deconstruct a multimodal gambin model fit
mult_abundances

Fit a unimodal gambin model to multiple species abundance distributions
summary.gambin

Summarising the results of a gambin model fit