Learn R Programming

cata (version 0.1.0.27)

rv.coef: Calculate \(RV\) Coefficient

Description

Calculate \(RV\) coefficient

Usage

rv.coef(X, Y, method = 1)

Value

\(RV\) coefficient

Arguments

X

input matrix (same dimensions as Y)

Y

input matrix (same dimensions as X)

method

1 (default) and 2 give identical \(RV\) coefficients

Author

J.C. Castura

References

Robert, P., & Escoufier, Y. (1976). A unifying tool for linear multivariate statistical methods: the RV-coefficient. Journal of the Royal Statistical Society: Series C (Applied Statistics), 25, 257-265. tools:::Rd_expr_doi("10.2307/2347233")

Examples

Run this code
# Generate some data
set.seed(123)
X <- matrix(rnorm(8), nrow = 4)
Y <- matrix(rnorm(8), nrow = 4)

# get the RV coefficient
rv.coef(X, Y)

Run the code above in your browser using DataLab