Learn R Programming

mogsa (version 1.6.4)

pairwise.rv: pairwise RV coefficients.

Description

Calculating pairwise RV coefficients for a list of matrices or data.frame.

Usage

pairwise.rv(data.list, match="col")

Arguments

data.list
A list of data.frame or matrix, either rows or columns in each data set should be matched.
match
Whether columns or rows of data.frame/matrix should be matched.

Value

The function will return a matrix containing the pairwise RV coefficients.

Details

The RV coefficient for each pair of matrices is calculated as Rv = trace(XX'YY')/sqrt(trace(XX'XX')*trace(YY'YY'))

References

Robert, P.; Escoufier, Y. (1976). A Unifying Tool for Linear Multivariate Statistical Methods: The RV-Coefficient. Applied Statistics 25 (3): 257-265.

Examples

Run this code
    data(NCI60_4arrays)
    pairwise.rv(NCI60_4arrays)

Run the code above in your browser using DataLab