synth_comm_from_counts: from count data (ex HMP) fit parameters to OTU margins and...

Description Usage Arguments Value

View source: R/fitdistr.R

Description

from count data (ex HMP) fit parameters to OTU margins and simulate a new community with those properties

Usage

1
2
synth_comm_from_counts(comm, distr, Sigma = cov(t(comm)), params,
  n = ncol(comm), retParams = FALSE, ...)

Arguments

comm

community: matrix of counts

distr

distribution to fit (see fitdistr)

Sigma

covariance structure (defaults to empirical cov of comm)

params

optionally supply already fitted parameters

n

number of samples (defaults to comm samples)

retParams

if TRUE, return the fitted parameters

...

additional parameters to parameter fitting

Value

community


zdk123/codmeR documentation built on May 4, 2019, 10:14 p.m.