nbFit: Fit the negative binomial

View source: R/nbFit.R

nbFitR Documentation

Fit the negative binomial

Description

Fits the negative binomial SSAD to a site x species matrix

Usage

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/ssadAssociation documentation built on Sept. 29, 2023, 4:43 a.m.