View source: R/predict.MBPLS.R
predict.MBPLS | R Documentation |
Computes predictions of Y from MBPLS
using calibration X (default) or new X observations.
## S3 method for class 'MBPLS'
predict(object, newdata = object$call$X, ncomp = object$call$ncomp, ...)
object |
An object resulting from |
newdata |
A matrix or data.frame of (new) observations having the same ncol and same colnames as the X of fitting observations. |
ncomp |
The number of components to be considered in the model to perform the predictions. By default, all components computed in |
... |
further arguments passed to or from other methods. |
A matrix of predicted Y values where each row corresponds to an observation and each column corresponds to a Y variable.
Beta
MBValidation
data(ham)
X=ham$X
block=ham$block
Y=ham$Y
res.mbpls <- MBPLS(X, Y, block, name.block = names(block))
predict(res.mbpls)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.