Description Usage Arguments Details Value Author(s) References See Also Examples

The function performs Canonical Correlation Analysis to highlight correlations between
two data matrices. It complete the `cancor()`

function with supplemental numerical and
graphical outputs and can handle missing values.

1 | ```
cc(X, Y)
``` |

`X` |
numeric matrix (n * p), containing the X coordinates. |

`Y` |
numeric matrix (n * q), containing the Y coordinates. |

The canonical correlation analysis seeks linear combinations of the 'X' variables which are the most correlated with linear combinations of the 'Y' variables.

Let PX and PY be the projector onto the respective column-space of X and Y. The eigenanalysis of PXPY provide the canonical correlations (square roots of the eigenvalues) and the coefficients of linear combinations that define the canonical variates (eigen vectors).

A list containing the following components:

`cor` |
canonical correlations |

`names` |
a list containing the names to be used for individuals and variables for graphical outputs |

`xcoef` |
estimated coefficients for the 'X' variables as returned by |

`ycoef` |
estimated coefficients for the 'Y' variables as returned by |

`scores` |
a list returned by the internal function |

Sébastien Déjean, Ignacio González

www.lsp.ups-tlse.fr/CCA

1 2 3 4 5 6 | ```
data(nutrimouse)
X=as.matrix(nutrimouse$gene[,1:10])
Y=as.matrix(nutrimouse$lipid)
res.cc=cc(X,Y)
plot(res.cc$cor,type="b")
plt.cc(res.cc)
``` |

```
Loading required package: fda
Loading required package: splines
Loading required package: Matrix
Attaching package: 'fda'
The following object is masked from 'package:graphics':
matplot
Loading required package: fields
Loading required package: spam
Loading required package: dotCall64
Loading required package: grid
Spam version 2.1-1 (2017-07-02) is loaded.
Type 'help( Spam)' or 'demo( spam)' for a short introduction
and overview of this package.
Help for individual functions is also obtained by adding the
suffix '.spam' to the function name, e.g. 'help( chol.spam)'.
Attaching package: 'spam'
The following objects are masked from 'package:base':
backsolve, forwardsolve
Loading required package: maps
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.