Fits the neutral model from Sloan et al. (2006) to an OTU table and returns several fitting statistics as well as predicted occurrence frequencies for each OTU based on their abundance in the metacommunity. The author of this function is Adam Burns (aburns2@uoregon.edu), and was originally published in Burns et al. (2016).

fit_sncm(spp = spp, pool = NULL, taxon = NULL)

Arguments

spp

A community table for communities of interest with local communities/samples as rows and taxa as columns. All samples must be rarefied to the same depth.

pool

(optional) A community table for defining source community.

taxon

(optional) A table listing the taxonomic calls for each otu, with OTU ids as row names and taxonomic classifications as columns.

Value

This function returns list of two elements. The first element, spp.out$fitstats, contains various fitting stats. The second element contains the predicted occurrence frequencies for each OTU/ASV, as well as their fit_class

See also