Description Usage Arguments Details Value Note References Examples
This function computes the CPCA from a given set of covariance matrices (of different groups).
1 2 |
X |
An array of three dimensions: the 3rd dimension encodes the groups and the first two dimension contain the covariance matrices. |
method |
The name of the method for computing the
CPCA. The default value is |
k |
The number of components to be computed (all if
it is |
iter |
The maximum number of iterations. The parameter is valid for the stepwise algorithm by Trendafilov, that is applied in the power algorithm for estimation a single component. The default value is 30. |
threshold |
The threshold value of the captured variance, which is reserved for further extensions. |
... |
Other parameters. |
Currently, the only the stepwise algorithm by Trendafilov is supported.
A list several slots: CPC
rotation matrix with
eigenvectors in columns; ncomp
the number of
components evaluated (equal to the number of columns in
CPC
).
This function adpats the original code in matlab written by Dr N. T. Trendafilov.
Trendafilov (2010). Stepwise estimation of common principal components. Computational Statistics & Data Analysis, 54(12), 3446-3457. doi:10.1016/j.csda.2010.03.010
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.