mom2: Method of Moments Estimating of Migration Paramter

Description Usage Arguments Value

View source: R/mom_function.R

Description

This function estimates the migration parameter between a local and meta community. This method is an extension from the paper "Taxa-Abundance Distributions in Microbial Communities Using Environmental Sequence Data" by Sloan et al.

Usage

1
mom2(local, meta, pool_est = FALSE)

Arguments

local

A local community of OTU reads for n samples. Rows should be OTUs, Columns should be Samples. A column of taxon indexes should be included at the beginning. Note that if this is not included, the first sample in your data will not be used.

meta

A meta community of OTU reads for n samples. Rows should be OTUs, Columns should be Samples. A column of taxon indexes should be included at the beginning. Note that if this is not included, the first sample in your data will not be used.

pool_est

to pool meta/source community data during estimation

Value

a list of 2 elements. Element 1 is the estimate for the migration parameter. Element 2 is the mean bray curtis dissimilarity in the meta community sample.


kathalexknuts/ntsims documentation built on May 4, 2019, 6:40 p.m.