TPLSpredict: Method for making predictions on a testing dataset testX

View source: R/TPLS.R

TPLSpredictR Documentation

Method for making predictions on a testing dataset testX

Description

Method for making predictions on a testing dataset testX

Usage

TPLSpredict(TPLSmdl, compval, threshval, testX)

Arguments

TPLSmdl

A TPLS object created from using function TPLS

compval

Vector of number of components to use in final predictor. Providing a vector will provide multiple predictions (e.g., c(3,4,5) will provide three prediction columns each with 3, 4, and 5 PLS components)

threshval

Threshold number between 0 and 1 (inclusive) for thresholding the betamap. This must be a scalar.

testX

Data that you want to predict the Y of

Value

  • score: Column vector of prediction scores. Matrix of scores if compval is a vector.


TPLSr documentation built on June 11, 2022, 1:10 a.m.