dcorMVdata.Rd
Computes the distances within two sets of variables and the corresponding distance correlation.
dcorMVdata(x, ind = 1, method = "euclidean", approx = FALSE)
x | The |
---|---|
ind | The indices for the first set of variables. The second set consists of all remaining variables. |
method | The method for dist. |
approx |
|
The distance correlation between 0 and 1 for the distances from the two sets of variables.
This code has not been tested thoroughly and may still contain errors.
# NOT RUN { so <- scale(olives[,3:8]) dcorMVdata(so,ind=1) p1 <- princomp(so) so1 <- cbind(so,p1$scores[,1]) so2 <- cbind(so,p1$scores[,2]) so12 <- cbind(so,p1$scores[,1:2]) dcorMVdata(so1,ind=7) dcorMVdata(so2,ind=7) dcorMVdata(so12,ind=7:8) # how about principal curves? # }