reconstruct.regress: Reconstruct fitted or subsetted outputs for a 'regress'...

View source: R/regress.R

reconstruct.regressR Documentation

Reconstruct fitted or subsetted outputs for a regress object

Description

For regression-based bi_projectors, reconstruction should map from the design matrix side (scores) to the output space using the regression coefficients, without applying any reverse preprocessing (which belongs to the input/basis side).

Usage

## S3 method for class 'regress'
reconstruct(
  x,
  comp = 1:ncol(x$coefficients),
  rowind = 1:nrow(scores(x)),
  colind = 1:nrow(x$coefficients),
  ...
)

Arguments

x

A regress object produced by regress().

comp

Integer vector of component indices (columns of the design matrix / predictors) to use.

rowind

Integer vector of row indices in the design matrix (observations) to reconstruct.

colind

Integer vector of output indices (columns of Y) to reconstruct.

...

Ignored.


multivarious documentation built on Jan. 22, 2026, 1:06 a.m.