rvcoef {GDAtools} | R Documentation |
RV coefficient
Description
Computes the RV coefficient between two groups of numerical variables.
Usage
rvcoef(Xa, Xb, row.w = NULL)
Arguments
Xa |
data frame with the first group of numerical variables |
Xb |
data frame with the second group of numerical variables |
row.w |
numeric vector of row weights. If NULL (default), a vector of 1 for uniform row weights is used. |
Details
Xa
and Xb
should have the same number of rows.
Value
numerical value : the RV coefficient
Author(s)
Nicolas Robette
References
Escouffier, Y. (1973) Le traitement des variables vectorielles. Biometrics 29 751–760.
See Also
Examples
# RV coefficient between decathlon results by sport
# and Rank and Points
library(FactoMineR)
data(decathlon)
Xa <- decathlon[,1:10]
Xb <- decathlon[,11:12]
str(Xa)
str(Xb)
rvcoef(Xa, Xb)
[Package GDAtools version 2.1 Index]