The function defl.select() computes residual matrices \(X_{1,h+1}, \ldots, X_{J,h+1}\). These
residual matrices are determined according to the following formula: \(X_{j,h+1} = X_{jh} - y_{jh} p_{jh}^t\).
Usage
defl.select(yy, rr, nncomp, nn, nbloc)
Arguments
yy
A matrix that contains the SGCCA block components of each block: \(y_{1h}, \ldots, y_{Jh}\)
rr
A list that contains the residual matrices \(X_{1h}, \ldots, 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 \(X_{1,h+1}, \ldots, X_{J,h+1}\).
pdefl
A list of \(J\) elements that contains \(p_{1h}, \ldots, p_{Jh}\).