makePredictor: Extracts a predictor (betamap and intercept) from a TPLS model at a given number of components and given threshold value
Description
Extracts a predictor (betamap and intercept) from a TPLS model at a given number of components and given threshold value
Usage
makePredictor(TPLSmdl, compval, threshval)
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 betamaps (e.g., c(3,4,5) will provide three betamaps 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.
Value
bias: The intercept of the extracted model. Vector of intercepts if compval is a vector.
betamap: Column vector of betamap. Matrix of betamaps if compval is a vector.