Description Usage Arguments Value
View source: R/pl_kulczynski.R
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.
Paired, qualitative: D_{AB} = 1 - (1/m) ∑_k I[d_k^A = d_k^B] I[d_k^A \neq 0] Paired, quantitative: D_{AB} = 1 - (2/m) ∑_k \min(|d_k^A|, |d_k^B|) I[sgn(d_k^A) = sgn(d_k^B)] Longitudinal: D_{AB} = 1 - (1/m) * ∑_k \min(d_k^A, d_k^B)
1 | kulczynski(tsf.data, paired, binary)
|
tsf.data |
Transformed OTU table and metadata (from function pl.transform) |
paired |
Logical indicating whether paired analysis is desired |
binary |
Logical indicating whether to use the binary version of the distance |
Returns an n x n distance matrix.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.