Regression between subsets of dissimilarity matrices
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
.
regdist(x,dmx,dmy,xcenter=0,param)
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 |
If param=NULL
, the output object of lm
. If
param=1
the intercept. If
param=2
the slope.
Hausdorf, B. and Hennig, C. (2019) Species delimitation and geography. Submitted.
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)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.