corrcoef4mat: Compute the squared correlation and R_V coefficients between...

View source: R/PLS_jack_svds_HA.R

corrcoef4matR Documentation

Compute the squared correlation and R_V coefficients between two conformable matrices.

Description

corrcoef4mat: Computes the squared correlation and R_V coefficients between two conformable matrices.

Usage

corrcoef4mat(Y1, Y2)

Arguments

Y1

The first I by J matrix

Y2

The first I by J matrix

Details

corrcoef4mat: is mainly used by PLSR_SVD.

Value

A list with R^2 and the RV coefficient between the matrices Y1 and Y2.

Examples

## Not run: 
X = matrix(c(4,2,8,7), nrow = 2)
Y = matrix(c(1,7,2,9), nrow = 2)
corrXY <- corrcoef4mat(X,Y)

## End(Not run)

HerveAbdi/data4PCCAR documentation built on Sept. 11, 2022, 4:19 p.m.