pairwise.rv: pairwise RV coefficients.

Description Usage Arguments Details Value Note Author(s) References Examples

View source: R/pairwise.rv.R

Description

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

Usage

1
    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.

Details

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

Value

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

Note

The variable in matrices are not automatically centered or scaled in this function. So these step may need to be performed before calling this function.

Author(s)

Chen Meng

References

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

Examples

1
2

mogsa documentation built on Nov. 8, 2020, 5:41 p.m.