Learn R Programming

mdatools (version 0.14.2)

pls.getxdecomp: Compute object with decomposition of x-values

Description

Compute object with decomposition of x-values

Usage

pls.getxdecomp(
  x,
  xscores,
  xloadings,
  xeigenvals,
  xnames = NULL,
  x.attrs = NULL,
  objnames = NULL,
  compnames = NULL
)

Value

array `ldecomp` object for x-values

Arguments

x

matrix with predictors, already preprocessed (e.g. mean centered) and cleaned

xscores

matrix with X-scores

xloadings

matrix with X-loadings

xeigenvals

matrix with eigenvalues for X

xnames

vector with names of the predictors

x.attrs

list with preditors attributes

objnames

vector with names of objects (rows of x)

compnames

vector with names used for components