synth_comm_from_counts | R Documentation |
from count data (ex HMP) fit parameters to OTU margins and simulate a new community with those properties
synth_comm_from_counts(
comm,
mar = 2,
distr,
Sigma = cov(comm),
params,
n = nrow(comm),
retParams = FALSE,
...
)
comm |
community: matrix of counts |
mar |
the sample margin of the community data matrix (1: rows, 2: cols) |
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 |
community
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.