defl.select: deflation function

Description Usage Arguments Value

View source: R/defl.select.R

Description

The function defl.select() computes residual matrices \mathbf{X}_{1,h+1}, …, \mathbf{X}_{J,h+1}. These residual matrices are determined according to the following formula: \mathbf{X}_{j,h+1} = \mathbf{X}_{jh} - \mathbf{y}_{jh} \mathbf{p}_{jh}^t.

Usage

1
  defl.select(yy, rr, nncomp, nn, nbloc)

Arguments

yy

A matrix that contains the SGCCA block components of each block: \mathbf{y}_{1h}, …, \mathbf{y}_{Jh}

rr

A list that contains the residual matrices \mathbf{X}_{1h}, …, \mathbf{X}_{Jh}

nncomp

A 1 \times J vector that contains the number of components to compute for each block.

nn

A 1 \times J vector that contains the numbers of already computed components for each block

nbloc

Number of blocks.

Value

resdefl

A list of J elements that contains \mathbf{X}_{1,h+1}, …, \mathbf{X}_{J,h+1}.

pdefl

A list of J elements that contains \mathbf{p}_{1h}, …, \mathbf{p}_{Jh}.


ecamenen/r-rgcca documentation built on Jan. 16, 2020, 12:50 a.m.