get_local_pls_weights: Internal Cpp function for computing the weights of the PLS...

View source: R/RcppExports.R

get_local_pls_weightsR 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 opls function.

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

Xscale

if scale = TRUE a matrix of one row with the values that must be used for scaling newdata.

Value

a matrix of one row with the weights for each component between the max. and min. specified.

Author(s)

Leonardo Ramirez-Lopez


resemble documentation built on May 29, 2024, 8:49 a.m.