project_block: Project a single "block" of data onto the subspace

View source: R/all_generic.R

project_blockR Documentation

Project a single "block" of data onto the subspace

Description

When observations are concatenated into "blocks", it may be useful to project one block from the set. This function facilitates the projection of a specific block of data onto a subspace. It is a convenience method for multi-block fits and is equivalent to a "partial projection" where the column indices are associated with a given block.

Usage

project_block(x, new_data, block, ...)

Arguments

x

The model fit, typically an object of a class that implements a project_block method

new_data

A matrix or vector of new observation(s) with the same number of columns as the original data

block

An integer representing the block ID to select in the block projection matrix. This ID corresponds to the specific block of data to be projected

...

Additional arguments passed to the underlying project_block method

Value

A matrix or vector of the projected data for the specified block

See Also

project for the generic projection function

Other project: project(), project.cross_projector(), project_vars()


bbuchsbaum/multivarious documentation built on April 15, 2024, 3:33 a.m.