opls
and fopls
functionsPredicts response values based on a model generated by either by opls
or the fopls
functions.
For internal use only!.
predict_opls(bo, b, ncomp, newdata, scale, Xscale)
a matrix of predicted values.
a numeric value indicating the intercept.
the matrix of regression coefficients.
an integer value indicating how may components must be used in the prediction.
a matrix containing the predictor variables.
a logical indicating whether the matrix of predictors used to create the regression model was scaled.
if scale = TRUE
a matrix of one row with the values that must be used for scaling newdata
.
Leonardo Ramirez-Lopez