Learn R Programming

TPLSr (version 1.0.3)

TPLSpredict: Make predictions about given data testX by using an extracted TPLSmdl with compval components and threshval threshold.

Description

Make predictions about given data testX by using an extracted TPLSmdl with compval components and threshval threshold.

Usage

TPLSpredict(TPLSmdl, compval, threshval, testX)

Arguments

TPLSmdl

A TPLS object created from using function TPLS

compval

The number of components you want in your model. 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.

Examples

Run this code
# NOT RUN {
# See examples for TPLS
# }

Run the code above in your browser using DataLab