cc: cc

ccR Documentation

cc

Description

Very similar cc() of package CCA, but 1) it allows for X and Y to be rank deficient, 2) it allows for categorical variables and 3) it allows for covariates, 4) more (see below).

Usage

cc(X, Y, Zx = NULL, Zy = Zx, fill.na = FALSE)

Arguments

X

See cc for a proper documentation.

Y

See cc for a proper documentation.

Zx

(=NULL by default) covariates (i.e. nuisance) of X. If different from NULL, the X are residualized by Zx before entering cc().

Zy

(=Zx by default) covariates of Y. Same use of Zx.

fill.na

replace NA in X and Y with column mean before enter cc().

Value

The returned list is the same list as returned by cc, while it also contains prop_expl_var which is a list reporting the proportion of explained (total) variance of X and Y by each component (i.e. mode).


livioivil/r41sqrt10 documentation built on July 29, 2023, 5:40 p.m.