pls.getpredictions: Compute predictions for response values

View source: R/pls.R

pls.getpredictionsR Documentation

Compute predictions for response values

Description

Compute predictions for response values

Usage

pls.getpredictions(
  x,
  coeffs,
  ycenter,
  yscale,
  ynames = NULL,
  y.attrs = NULL,
  objnames = NULL,
  compnames = NULL
)

Arguments

x

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

coeffs

array with regression coefficients

ycenter

'ycenter' property of PLS model

yscale

'yscale' property of PLS model

ynames

vector with names of the responses

y.attrs

list with response attributes (e.g. from reference values if any)

objnames

vector with names of objects (rows of x)

compnames

vector with names used for components

Value

array with predicted y-values


svkucheryavski/mdatools documentation built on Aug. 25, 2023, 12:27 p.m.