The first solution calculates a standardized canonical component cx[,1] of x associated to ky
standardized components cyi[,1] of yi by maximizing \(\sum_i \rho(cx[,1],cy_i[,1])^2\).
The second solution is obtained from the same criterion, with ky
orthogonality constraints for having rho(cyi[,1],cyi[,2])=0 (that
implies rho(cx[,1],cx[,2])=0). For each of the 1+ky sets, the r
canonical components are 2 by 2 zero correlated.
The ky matrices (cx)'*cyi are triangular.
This function uses concor function.