View source: R/fastInferences4-eigen-CA.R
eigCA | R Documentation |
eigCA
:
A very fast and bare-bone function that computes
the eigenvalues
(and possibly the row and column factor scores)
of the Correspondence Analysis (CA)
of a data matrix suitable for CA
(i.e., a matrix whose all entries are non-negative).
eigCA
is mainly used for cross-validation
and resampling methods (e.g., permutation and
bootstrap tests).
eigCA(Xdata, eig.only = TRUE)
Xdata |
a data matrix (whose all entries are non-negative) suitable for correspondence analysis. |
eig.only |
when |
As a fast bare-bones CA based computations
eigCA
is mainly used for
cross-validation for CA methods.
if eig.only
is TRUE
eigCA
returns the CA-eigenvalues of
X
;
if eig.only
is FALSE
eigCA
returns
a list with: $eigen
: the CA-eigenvalues of
X
, $fi
: the CA row factor scores,
and $fi
: the CA column factor scores.
Hervé Abdi
## Not run:
set.seed(87) # set the seed
X <- matrix(round(runif(21)*20), ncol = 3) # good for CA
eigenOfX <- eigCA(X)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.