[R] about cancor.R

yan zhao Yan.Zhao at cea.fr
Tue Nov 30 09:16:35 CET 2004


Hello,
I'm a beginning user of R, now I have a question about canonical correlation analysis (cca). 
In R,there is a function "cancor.R" used for cca; For example X(n*p1) and Y(n*p2)are the two matrix to be analyzed. In the example given by R, when n> max(p1,n2), cancor(X,Y) works; but when n<p1 or n<p2, cancor(X,Y) doesn't work well because cancor$cor == 1; how to cope with this case? maybe before apply the two matrix to cancor.R, some time-space transformation should be done? could you give some suggestion? Thanks you in advance!
Best regards,
Yan ZHAO




More information about the R-help mailing list