diss.distributional | R Documentation |
distributional
, compositional
, counts
or
varietal
Calculate the dissimilarity matrix between two datasets of class
distributional
or compositional
using the Kolmogorov-Smirnov,
Sircombe-Hazelton, Aitchison or Bray-Curtis distance
## S3 method for class 'distributional'
diss(x, method = NULL, log = FALSE, verbose = FALSE, ...)
## S3 method for class 'compositional'
diss(x, method = NULL, ...)
## S3 method for class 'counts'
diss(x, method = NULL, ...)
## S3 method for class 'varietal'
diss(x, method = NULL, ...)
x |
an object of class |
method |
if if if if |
log |
logical. If |
verbose |
logical. If |
... |
optional arguments |
"KS"
stands for the Kolmogorov-Smirnov statistic,
"W2_1D"
for the 1-dimensional Wasserstein-2 distance,
"Kuiper"
for the Kuiper statistic, "SH"
for the
Sircombe-Hazelton distance, "aitchison"
for the
Aitchison logratio distance, "bray"
for the Bray-Curtis
distance, "chisq"
for the Chi-square distance, and "W2"
for the 2-dimensional Wasserstein-2 distance.
an object of class diss
KS.diss bray.diss SH.diss Wasserstein.diss Kuiper.diss
data(Namib)
print(round(100*diss(Namib$DZ)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.