Skip to contents

Constructs a multiblock bi-projector using the given component matrix (v), score matrix (s), singular values (sdev), a preprocessing function, and a list of block indices. This allows for the projection of multiblock data, where each block represents a different set of variables or features, with two-way mapping from samples to scores and from variables to components.

Usage

multiblock_biprojector(
  v,
  s,
  sdev,
  preproc = prep(pass()),
  ...,
  block_indices,
  classes = NULL
)

Arguments

v

A matrix of components with dimensions nrow(v) by ncol(v) (number of columns = number of components).

s

A matrix of scores.

sdev

A numeric vector of singular values.

preproc

A pre-processing function for the data (default is a pass-through with prep(pass())).

...

Extra arguments.

block_indices

A list of numeric vectors specifying the indices of each data block.

classes

(optional) A character vector specifying the class attributes of the object, default is NULL.

Value

A multiblock_biprojector object.

See also

bi_projector, multiblock_projector