matCorAddVar {visCorVar}R Documentation

Determination of the correlation circles that can be overlaid and computation of the correlations

Description

Determines which blocks can be overlaid. Performs the computation of the correlations between the components and the selected block variables, the response variables and the variables of interest.

Usage

matCorAddVar(res_block_splsda, block_Y, cutoff_comp, var_interest = NULL, comp)

Arguments

res_block_splsda

object of class sgccda. Output of the function block.splsda.

block_Y

matrix of size n*(number of response variables). The coefficient (i, j) of block_Y is equal to 1 if the ith sample tallies with the jth response variable.

cutoff_comp

numeric. If for two blocks, the correlation between the comp[1] component of a block and the comp[1] component of the other block is greater than cutoff_comp in absolue value and the correlation between the comp[2] component of a block and the comp[2] component of the other block is greater than cutoff_comp in absolue value, the correlation circles for these two blocks can be overlaid.

var_interest

(optional) characters vector. va_interest contains the variables of interest that will be added in the network.

comp

integer vector. comp contains the indices of the components for which the computation of the correlations between the components and the selected block variables, the response variables and the variables of interest is performed. Default comp = 1:2 .

Details

The function matCorAddVar first computes the correlation matrix for the comp[1] components of the blocks and the comp[2] components of the blocks. These two matrices enable then to determine group of blocks for which the correlation circles can be overlaid and all the combinations of group of blocks that can be overlaid. Finally, for each group of blocks, this function computes the correlations between the components (whose indices are in comp) and the selected block variables, the response variables and variables of interest (optional).

Value

a list containing

Examples

load(system.file("extdata", "res_data_integration.rda", package="visCorVar"))
load(system.file("extdata", "block_Y.rda", package="visCorVar"))
load(system.file("extdata", "var_interest.rda", package="visCorVar"))
comp = 1:2
cutoff_comp = 0.8
res_matCorAddVar = matCorAddVar(res_data_integration, block_Y,
 cutoff_comp, var_interest, comp)

[Package visCorVar version 0.6 Index]