Learn R Programming

GDAtools (version 2.1)

rvcoef: RV coefficient

Description

Computes the RV coefficient between two groups of numerical variables.

Usage

rvcoef(Xa, Xb, row.w = NULL)

Value

numerical value : the RV coefficient

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.

Author

Nicolas Robette

Details

Xa and Xb should have the same number of rows.

References

Escouffier, Y. (1973) Le traitement des variables vectorielles. Biometrics 29 751–760.

See Also

coiPCA, coiMCA, multiMCA

Examples

Run this code
# 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)

Run the code above in your browser using DataLab