project_opls | R Documentation |
opls
functionProjects new spectra onto a PLS space based on a model generated by either by opls
or the opls2
functions.
For internal use only!.
project_opls(projection_mat, ncomp, newdata, scale, Xcenter, Xscale)
projection_mat |
the projection matrix generated by the |
ncomp |
an integer value indicating how may components must be used in the prediction. |
newdata |
a matrix containing the predictor variables. |
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 |
Xscale |
if |
a matrix corresponding to the new spectra projected onto the PLS space
Leonardo Ramirez-Lopez
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.