For internal use only!.
get_local_pls_weights(projection_mat,
xloadings,
coefficients,
new_x,
min_component,
max_component,
scale,
Xcenter,
Xscale)
a matrix of one row with the weights for each component between the max. and min. specified.
the projection matrix generated either by the opls
function.
.
the matrix of regression coefficients.
a matrix of one new spectra to be predicted.
an integer indicating the minimum number of pls components.
an integer indicating the maximum number of pls components.
a logical indicating whether the matrix of predictors used to create the regression model was scaled.
a matrix of one row with the values that must be used for centering newdata
.
if scale = TRUE
a matrix of one row with the values that must be used for scaling newdata
.
Leonardo Ramirez-Lopez