nbFit: Fit the negative binomial

Description Usage Arguments Details Value Author(s)

View source: R/nbFit.R

Description

Fits the negative binomial SSAD to a site x species matrix

Usage

1
nbFit(x)

Arguments

x

a site by species matrix

Details

If likelihood optimization fails for a given species, NA will be returned for all row elements corresponding to that species.

Value

A matrix with columns giving the species IDs, the two parameters of the negative binomial distribution, the log likelihood of the negative binomial distribution, and the log likelihood of the Poisson distribution. Each row is one species and the species ID refers to the column index of that species in the site x species matrix x.

Author(s)

Andy Rominger <ajrominger@gmail.com>


ajrominger/RarePlusComMinus documentation built on June 27, 2021, 9:25 p.m.