Learn R Programming

STATegRa (version 1.0.0)

selectCommonComps: Select common components of two blocks of object wise omics data.

Description

This function applies a Simultaneous Component Analysis (SCA). The idea is that the scores for both blocks should have a similar behavior if the components are in the common mode. For evaluate if a component is common or not, the ratios be- tween the explained variances (SSQ) of each block and its estimationare used. The highest component having its ratios between 0.8 and 1.5 is selected as the optical number of common components.

Usage

selectCommonComps(X,Y,Rmax)

Arguments

X
First block of omics data
Y
Second block of omics data
Rmax
Maximum number of common components

Value

The function returns a list with the following components:
common
Number of optimal common components
ssqs
Matrix with SSQ for each block and its estimation
pssq
ggplot object representing SSQ for each block and its estimation
pratios
ggplot object representing the SSQ ratios between each block and its estimation

See Also

modelSelection,ggplot

Examples

Run this code
data(STATegRa_S3)

cc <- selectCommonComps(X=Block1.PCA,Y=Block2.PCA,Rmax=3)
cc$common
# Graphical output
cc$pssq
cc$pratios

Run the code above in your browser using DataLab