analyseBlocks.Rd
Performs either Regularized Consensus Principal Component Analysis on a list of data blocks containing shape information, or performs principal component analysis on a superblock produced by the column-wise concatenation of the individual data blocks.
analyseBlocks(blockList, option = "rcpca", ncomp = 3)
blockList | list of 'block' objects produced by the |
---|---|
option | either |
ncomp | an integer specifying how many components should be calculated (default is 3) |
A list object containing output from the Regularized Consensus Principal Component Analysis or principal component analysis. The list contains the elements:
output from the Regularized Consensus Principal Component Analysis in mode 2 produced by the rgcca
function from the RGCCA
package, or output from principal component analysis produced by the prcomp
function in base
R.
either "rcpca" or "pca".
a list containing the data blocks and a concatenated superblock. Inherited from the supplied blockList object and retained for downstream analyses.
component score values (for individual blocks and the consensus if option = "rpca"
; for the superblock if option = "pca"
) (see scoresPlot
for more detail).
component loadings (for individual blocks and the consensus if option = "rpca"
; for the superblock if option = "pca"
) (see loadingsPlot
for more detail).
number of points in the configurations of each data block. Inherited from the supplied blockList object and retained for downstream analyses.
number of dimensions that the points in each configuration has. Inherited from the supplied blockList object and retained for downstream analyses.
number of configurations included in each data block. Inherited from the supplied blockList object and retained for downstream analyses.
analyseBlocks
is applied to an object of class "blockList" produced by the combineBlocks
function and has two options: 1) option = "rcpca"
and 2) option = "pca"
. The option = "rcpca"
will perform Regularized Consensus Principal Component Analysis using the rgcca
function from the RGCCA
package (Tenenhaus and Guillemot 2017), and is the default option for analyseBlocks
. The rgcca
function itself has many options that each perform a different type of analysis. Here the analyseBlocks
function is specifically calling the Regularized Consensus Principal Component Analysis in mode 2 option with scaling applied. For further detail see Tenenhaus and Guillemot (2017) and Tenenhaus et al. (2017). option = "pca"
will perform principal component analysis on the superblock item in the block list using the prcomp
function from base
R.
Tenenhaus A, Guillemot V. 2017. RGCCA: Regularized and Sparse Generalized Canonical Correlation Analysis for multiblock data 2.1.2. https://CRAN.R-project.org/package=RGCCA.
Tenenhaus M, Tenenhaus A, Groenen PJF. 2017. Regularized Generalized Canonical Correlation Analysis: A framework for sequential multiblock component methods. Psychometrika 82: 737-777 https://doi.org/10.1007/s11336-017-9573-x
block1 <- dodecBlock() block2 <- dodecBlock() blocklist <- combineBlocks(blocks = c(block1, block2)) result1 <- analyseBlocks(blocklist) result2 <- analyseBlocks(blocklist, option = "pca", ncomp = 10)