wapls.weights {resemble} | R Documentation |
Internal function for computing the weights of the PLS components necessary for weighted average PLS
Description
internal
Usage
wapls.weights(plsO, orgX, type = "w1", newX = NULL, pls.c)
Arguments
plsO |
either an object returned by the plsCv function or an object as returned by the opls function which contains a pls model.
|
orgX |
the original spectral matrix which was used for calibrating the pls model.
|
type |
type of weight to be computed. The only available option (for the moment) is "w1" . See details on the mbl function where it is explained how "w1" is computed whitin the "wapls1" regression.
|
newX |
a vector of a new spectral sample. When "w1" is selected, newX must be specified.
|
pls.c |
a vector of length 2 which contains both the minimum and maximum number of PLS components for which the weights must be computed.
|
Value
wapls.weights
returns a vector
of weights for each PLS component specified
Author(s)
Leonardo Ramirez-Lopez and Antoine Stevens
[Package
resemble version 1.2.2
Index]