projectpls {resemble} | 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!.
projectpls(projectionm, ncomp, newdata, scale, Xcenter, Xscale)
projectionm |
the projection |
ncomp |
an integer value indicating how may components must be used in the prediction. |
newdata |
a |
scale |
a logical indicating whether the matrix of predictors used to create the regression model was scaled. |
Xcenter |
a |
Xscale |
if |
a matrix
corresponding to the new spectra projected onto the PLS space
Leonardo Ramirez-Lopez