regdist {prabclus} | R Documentation |
Regression between subsets of dissimilarity matrices
Description
Given two dissimilarity matrices dmx
and dmy
and an indicator
vector x
, this computes a standard least squares regression
between the dissimilarity between objects indicated in x
.
Usage
regdist(x,dmx,dmy,xcenter=0,param)
Arguments
x |
vector of logicals of length of the number of objects on which
dissimilarities |
dmx |
dissimilarity matrix or object of class
|
dmy |
dissimilarity matrix or object of class
|
xcenter |
numeric. Dissimilarities |
param |
1 or 2 or |
Value
If param=NULL
, the output object of lm
. If
param=1
the intercept. If
param=2
the slope.
Author(s)
Christian Hennig christian.hennig@unibo.it https://www.unibo.it/sitoweb/christian.hennig/en
References
Hausdorf, B. and Hennig, C. (2019) Species delimitation and geography. Submitted.
Examples
options(digits=4)
data(veronica)
ver.geo <- coord2dist(coordmatrix=veronica.coord[1:20,],file.format="decimal2")
vei <- prabinit(prabmatrix=veronica[1:20,],distance="jaccard")
regdist(c(rep(TRUE,10),rep(FALSE,10)),ver.geo,vei$distmat,param=1)