Learn R Programming

toscca (version 0.1.0)

getCanSubspace: Performs matrix residualisation over estimated canonical vectors by using the null space of the estimated canonical vector to construct a new matrix.

Description

Performs matrix residualisation over estimated canonical vectors by using the null space of the estimated canonical vector to construct a new matrix.

Usage

getCanSubspace(mat, vec)

Value

An nxk matrix.

Arguments

mat

An nxp matrix.

vec

A vector of dimensions nxk.

Details

For nxp matrix $$\mathbf{A}$$ and pxk vector $$\mathbf{\alpha}$$, the canonical is compute as \(\mathbf{A}_{sub} = \mathbf{A}\mathbf{\alpha}(\mathbf{\alpha}^T\mathbf{\alpha})\mathbf{\alpha}^T\).