Learn R Programming

TPLSr (version 1.0.4)

makePredictor: Method for extracting the T-PLS predictor at a given compval and threshval

Description

Method for extracting the T-PLS predictor at a given compval and threshval

Usage

makePredictor(TPLSmdl, compval, threshval)

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 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.