Rv: 'Rv' Compute the RV coefficient between two matrices with the...

View source: R/BlockProjections.R

RvR Documentation

Rv Compute the RV coefficient between two matrices with the same number of rows.

Description

Rv Compute the RV coefficient between two matrices with the same number of rows. Rv first computes the cross-product matrix. With X and Y matrices, RV is equal to <XX',YY'> /sqrt(<XX'*XX'>*<YY'*YY'>), with <> being the scalar product. Rv works like a squared correlation coefficient. Depending the options chosen, Rv will return the Rv coefficient and associated p-values. The estimation of the p-values are made following Kazi-Aoual et al. (CSDA 1995). See also Schlich (1996), and Abdi (2010, 2007).

Usage

Rv(m1, m2, return.type = "compact")

Arguments

m1

an I*J matrix

m2

an I*K matrix

return.type

what is in the "returned list." "compact" (default) returns Rv and (pRv), "Rv" returns Rv, "full" return Rv, ERv, VRv, ZRv, pRv.

Value

a list with, depending upon the option chosen in return.type, some (or all) of these: Rv (RV coefficient), ERv (Expected value of Rv), VRv (Variance of Rv), ZRv (Z-score for Rv), pRv (p-value for Rv).

Author(s)

Hervé Abdi

References

Abdi, H. (2007). Multiple correlation coefficient. In N.J. Salkind (Ed.): Encyclopedia of Measurement and Statistics. Thousand Oaks (CA): Sage. pp. 648-651.

Abdi, H. (2010). Congruence: Congruence coefficient, RV coefficient, and Mantel Coefficient. In N.J. Salkind, D.M., Dougherty, & B. Frey (Eds.): Encyclopedia of Research Design. Thousand Oaks (CA): Sage. pp. 222-229. @importFrom stats pnorm


HerveAbdi/PTCA4CATA documentation built on July 17, 2022, 5:41 a.m.