Description Usage Arguments Value Note Author(s) See Also Examples
Computes the distances within two sets of variables and the corresponding distance correlation.
1 | 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.
Alexander Pilhoefer
dcorMVtable, wdcor, approx.dcor
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## 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?
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.