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

Description Usage Arguments Value Author(s)

View source: R/RcppExports.R

Description

For internal use only!.

Usage

1
2
3
4
5
6
7
8
9
get_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 Nov. 9, 2020, 5:08 p.m.