R/matcor.R

"matcor" <-
function (X, Y) 
{
    matcorX = cor(X, use = "pairwise")
    matcorY = cor(Y, use = "pairwise")
    matcorXY = cor(cbind(X, Y), use = "pairwise")
    return(list(Xcor = matcorX, Ycor = matcorY, XYcor = matcorXY))
}

Try the CCA package in your browser

Any scripts or data that you put into this service are public.

CCA documentation built on Sept. 8, 2023, 5:19 p.m.