predict_opls | R Documentation |
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)
bo |
a numeric value indicating the intercept. |
b |
the matrix of regression coefficients. |
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. |
Xscale |
if |
a matrix of predicted values.
Leonardo Ramirez-Lopez
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.