Rostova.tbl | R Documentation |
Calculates multiple correlation matrices (via 'factor1') and stacks them together
Rostova.tbl(X, GROUP, ...)
X |
Data frame or matrix with values |
GROUP |
Number of grouping variable |
... |
Arguments to 'Cor.vec()' |
Calculates multiple correlation matrices (via GROUP) and stacks them together.
Output is suitable for PCA, distance calculations and other multivariate methods (Rostova, 1999; Rostova, 2002).
Data frame with correlation structure
Alexey Shipunov
Rostova N.S. 1999. The variability of correlations systems between the morphological characters. Part 1. Natural populations of Leucanthemum vulgare (Asteraceae). Botanicheskij Zhurnal. 84(11): 50–66.
Rostova N.S. 2002. Correlations: Structure and Variability. Saint Petersburg, St. Petersburg University Publisher.
Cor.vec
Trees <- trees Trees[, 4] <- sample(letters[1:3], nrow(Trees), replace=TRUE) (rr <- Rostova.tbl(Trees, 4)) plot(hclust(dist(rr)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.