calc_posterior_distances: Calculate distances between all posterior samples of either...

Description Usage Arguments Details Examples

View source: R/posterior_analyses.R

Description

Calculate distances between all posterior samples of either Sigma or Lambda

Usage

1
2
3
4
5
6
7
calc_posterior_distances(
  tax_level = "ASV",
  which_measure = "Sigma",
  which_distance = "Riemannian",
  MAP = FALSE,
  spike_in = FALSE
)

Arguments

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

Details

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).

Examples

1
calc_posterior_distances(tax_level="ASV", which_measure="Sigma", MAP=FALSE)

kimberlyroche/ROL documentation built on Dec. 10, 2020, 2:18 a.m.