avgdist.squared | R Documentation |
This function computes a distance matrix for each rarefied OTU table, square the distance matrix (in an element-wise manner), and then average the squared distance matrices.
avgdist.squared(
otu.table,
dist.method = "jaccard",
tree = NULL,
scale.otu.table = FALSE,
n.rarefy = 100,
binary = TRUE,
seed = 123
)
otu.table |
the |
dist.method |
method for calculating the distance measure, partial
match to all methods supported by |
tree |
the phylogeneic tree. The default is NULL. |
scale.otu.table |
a logical variable indicating whether to scale the rows of the OTU table. For count data, this corresponds to dividing by the library size to give relative frequencies. The default is FALSE. |
n.rarefy |
number of rarefactions. The default is 100. |
binary |
the "binary" parameter in |
seed |
a single-value integer seed for the random process of drawing rarefaction replicates. The seed is user supplied or internally generated. The default is 123. |
a single matrix object
D2.avg |
The average of the squared distance matrices. |
Yi-Juan Hu <yijuan.hu@emory.edu>, Glen A. Satten <gsatten@emory.edu>
dist.avg.D2 <- avgdist.squared(throat.otu.tab5, dist.method="jaccard", n.rarefy=100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.