Usage
waplswCpp(projectionm, xloadings, coefficients, newX, minF, maxF, scale, Xcenter, Xscale)
Arguments
projectionm
the projection matrix generated either by the opls function.
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.