braycurtis: Paired or longitudinal Bray-Curtis distances

Description Usage Arguments Value

View source: R/pl_braycurtis.R

Description

The distances are calculated as follows, where d_k^X is the within-subject measure of change appropriate to the setting (paired/longitudinal and quantitative/qualitative), as described in the full package documentation and vignette. D_{AB} = (1/m) * ∑_k |d_k^A - d_k^B|

Usage

1
braycurtis(tsf.data, binary)

Arguments

tsf.data

Transformed OTU table and metadata (from function pl.transform)

binary

Logical indicating whether to use the binary version of the distance

Value

Returns an n x n distance matrix.


aplantin/pldist documentation built on Feb. 26, 2021, 2:19 p.m.