get_local_pls_weights {resemble} | R Documentation |
Internal Cpp function for computing the weights of the PLS components necessary for weighted average PLS
Description
For internal use only!.
Usage
get_local_pls_weights(projection_mat,
xloadings,
coefficients,
new_x,
min_component,
max_component,
scale,
Xcenter,
Xscale)
Arguments
projection_mat |
the projection matrix generated either by the |
xloadings |
. |
coefficients |
the matrix of regression coefficients. |
new_x |
a matrix of one new spectra to be predicted. |
min_component |
an integer indicating the minimum number of pls components. |
max_component |
an integer indicating the maximum number of pls components. |
scale |
a logical indicating whether the matrix of predictors used to create the regression model was scaled. |
Xcenter |
a matrix of one row with the values that must be used for centering |
Xscale |
if |
Value
a matrix of one row with the weights for each component between the max. and min. specified.
Author(s)
Leonardo Ramirez-Lopez
[Package resemble version 2.2.4 Index]