Description Usage Arguments Details Value
View source: R/comprcomp.lib.R
This function is inspired by the base function prcomp
for PCA and
shares similarities in arguments (center
and scale
arguments),
and methods (e.g. scores
).
1 |
X |
A matrix of data points (raw data). |
Y |
A vector of classes (factor). |
center |
A logical value indicating centering (per variable/per column). |
scale |
A logical value indicating scaling to unit variance (per variable/per column). |
ncomp |
The numberof components.
The default value is |
... |
Arguments to be passed to |
The difference is that comprcomp
computes CPCA by calling cpca
function.
The advantage of using comprcomp
instead of cpca
function
is that the input data are given the format observaions vs. variables,
and construction of covariance matrices, as well as pre-procesing routines,
are implemented inside of comprcomp
function.
Consequently, projection of new data, plotting, etc are easier
(as easy as using prcomp
function).
comprcomp
function is a constructor for comprcomp
class.
A object of class comprcomp
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.