View source: R/analyseBlocks.R
analyseBlocks | R Documentation |
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) |
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.
A list object containing output from the Regularized Consensus Principal Component Analysis or principal component analysis. The list contains the elements:
result |
output from the Regularized Consensus Principal Component Analysis in mode 2 produced by the |
option |
either "rcpca" or "pca". |
block.list |
a list containing the data blocks and a concatenated superblock. Inherited from the supplied blockList object and retained for downstream analyses. |
scores |
component score values (for individual blocks and the consensus if |
block.loadings |
component loadings (for individual blocks and the consensus if |
p |
number of points in the configurations of each data block. Inherited from the supplied blockList object and retained for downstream analyses. |
k |
number of dimensions that the points in each configuration has. Inherited from the supplied blockList object and retained for downstream analyses. |
n |
number of configurations included in each data block. Inherited from the supplied blockList object and retained for downstream analyses. |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.