Learn R Programming

⚠️There's a newer version (2.5.0) of this package.Take me there.

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

256

Version

2.4.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Thomas Matthews

Last Published

July 12th, 2018

Functions in gambin (2.4.0)

moths

Williams' Rothamsted moth data
deconstruct_modes

Deconstruct a multimodal gambin model fit
summary.gambin

Summarising the results of a gambin model fit
gambin-package

Fit the gambin model to species abundance distributions
create_octaves

Reclassify a vector of species' abundances into abundance octaves
fit_abundances

Fit a unimodal or multimodal gambin model to a species abundance distribution
dgambin

The mixture gambin distribution
AIC.gambin

Likelihood statistics for the GamBin model
categ

Simulated bird SAD dataset with species classification data
mult_abundances

Fit a unimodal gambin model to multiple species abundance distributions
fly

Brazilian Horse Fly Data