TPLSpredict {TPLSr} | R 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 |
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.
[Package TPLSr version 1.0.4 Index]