pls_prediction: Predicting scores and Y outcome using PLS component(s)

Description Usage Arguments Value Author(s)

View source: R/pls_prediction.R

Description

Predicting scores and Y outcome using PLS component(s)

Usage

1
pls_prediction(pls_mod, X)

Arguments

pls_mod

PLS component as outputted by function NIPALS_PLS_component

X

Input matrix with rows and columns representing new observations with identical number of variables than length of pls_mod$loadings.

Value

Returned is a list with the following entries:

Scores_pred

Predicted PLS component scores.

Y_hat

Predicted outcome. Averaged over all components in multi-PLS-component case.

#'

Y_hat_components

Predicted outcome (Y) for each component.

Author(s)

Torben Kimhofer tkimhofer@gmail.com


kimsche/MetaboMate documentation built on Aug. 8, 2020, 1:14 a.m.