geco | R Documentation |
Computes geco distances between the columns of a 0-1-matrix, based on a distance matrix between regions (usually, but not necessarily, this is a geographical distance).
geco(regmat,geodist=as.dist(matrix(as.integer(!diag(nrow(regmat))))),
transform="piece",
tf=0.1,
countmode=ncol(regmat)+1)
regmat |
0-1-matrix. Columns are species, rows are regions. |
geodist |
|
transform |
transformation applied to the distances before
computation of geco coefficient, see details. "piece" means
piecewise linear, namely distance/( |
tf |
tuning constant for transformation. See |
countmode |
optional positive integer. Every 'countmode' algorithm runs 'geco' shows a message. |
The geco distance between two species is 0.5*(mean distance
between region where species 1 is present and closest region where
species 2 is present plus mean distance
between region where species 2 is present and closest region where
species 1 is present). 'closest' to a region could be the regions
itself.
It is recommended (Hennig and Hausdorf, 2006) to transform the
distances first, because the differences between large distances are
usually not meaningful or at least much less meaningful than
differences between small distances for dissimilarity measurement
between species ranges. See parameter transform
.
If the between-regions distance is 1 for all pairs of
non-equal regions, the geco distance degenerates
to the Kulczynski distance, see kulczynski
.
A symmetrical matrix of geco distances.
Christian Hennig christian.hennig@unibo.it https://www.unibo.it/sitoweb/christian.hennig/en
Hennig, C. and Hausdorf, B. (2006) A robust distance coefficient between distribution areas incorporating geographic distances. Systematic Biology 55, 170-175.
kulczynski
options(digits=4)
data(kykladspecreg)
data(waterdist)
geco(t(kykladspecreg),waterdist)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.