gower: Paired or longitudinal Gower distances

Description Usage Arguments Value

View source: R/pl_gower.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|)/(\max d_k - \min d_k)

Usage

1
gower(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.