This is a wrapper for the stats::cancor
function for computing CCA.
Value
multiblock
object with associated with printing, scores, loadings. Relevant plotting functions: multiblock_plots
and result functions: multiblock_results
.
Details
CCA is a method which maximises correlation between linear combinations of the columns of two blocks, i.e. max(cor(X1 x a, X2 x b)). This is done sequentially with deflation in between, such that a sequence of correlations and weight vectors a and b are associated with a pair of matrices.
See also
Overviews of available methods, multiblock
, and methods organised by main structure: basic
, unsupervised
, asca
, supervised
and complex
.
Common functions for computation and extraction of results and plotting are found in multiblock_results
and multiblock_plots
, respectively.
Examples
data(potato)
X <- potato$Chemical
cca.pot <- cca(potato[1:2])