Learn R Programming

cml (version 0.2.2)

ccor: Canonical Correlations

Description

Computes canonical correlations for two sets of multivariate data x and y.

Usage

ccor(x, y)

Value

a list of the following components:

cancor

a vector of canonical correlations.

xcoef

a matrix, each column of which is the vector of coefficients of x to produce the corresponding canonical covariate.

ycoef

a matrix, each column of which is the vector of coefficients of y to produce the corresponding canonical covariate.

Arguments

x

the first multivariate dataset.

y

the second multivariate dataset.

Author

Anh Tuan Bui

Examples

Run this code
ccor(iris[,1:2], iris[,3:4])

Run the code above in your browser using DataLab