Description Usage Arguments Details Examples
View source: R/posterior_analyses.R
Calculate distances between all posterior samples of either Sigma or Lambda
1 2 3 4 5 6 7 | calc_posterior_distances(
tax_level = "ASV",
which_measure = "Sigma",
which_distance = "Riemannian",
MAP = FALSE,
spike_in = FALSE
)
|
tax_level |
taxonomic level at which to agglomerate data |
which_measure |
estimated object to embed, either Lambda or Sigma |
which_distance |
ignored for Lambda; for Sigma allowable options are "Riemannian" (default) or "Euclidean" |
MAP |
use MAP estimate model output instead of full posterior output |
spike_in |
copy and permute the samples and calculate distances to these too, so as to give upper bound on distances |
Distance matrix between posterior samples saved to designated output directory. Saves a list containing distance matrix and labels of each row or column (by host).
1 | calc_posterior_distances(tax_level="ASV", which_measure="Sigma", MAP=FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.