Learn R Programming

kernDeepStackNet (version 2.0.2)

cancorRed: Calculate first canonical correlation

Description

Calculates the first canonical correlation between two sets of variables.

Usage

cancorRed(x, y, xcenter = TRUE, ycenter = TRUE)

Arguments

x

Numeric matrix (n * p1), containing the x coordinates.

y

Numeric matrix (n * p2), containing the y coordinates.

xcenter

Logical or numeric vector of length p1, describing any centering to be done on the x values before the analysis. If the argument is TRUE (default), then all columns are centered. Otherwise not adjustment is made.

ycenter

analogous to xcenter, but for the y values.

Value

First canonical correlation (numeric vector).

Details

The canonical correlation analysis seeks linear combinations of the y variables which are well explained by linear combinations of the x variables. The relationship is symmetric as 'well explained' is measured by correlations.

See Also

cancor, rdcPart, rdcVarOrder