Learn R Programming

resemble (version 1.2.2)

waplswCpp: Internal Cpp function for computing the weights of the PLS components necessary for weighted average PLS

Description

For internal use only!.

Usage

waplswCpp(projectionm, xloadings, coefficients, newX, minF, maxF, scale, Xcenter, Xscale)

Arguments

projectionm
the projection matrix generated either by the opls function.
xloadings
.
coefficients
the matrix of regression coefficients.
newX
a matrix of one new spectra to be predicted.
minF
an integer indicating the minimum number of pls components.
maxF
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.