powered by
Computes predictions of Y from MBPLS using calibration X (default) or new X observations.
MBPLS
# S3 method for MBPLS predict(object, newdata = object$call$X, ncomp = object$call$ncomp, ...)
A matrix of predicted Y values where each row corresponds to an observation and each column corresponds to a Y variable.
An object resulting from MBPLS.
A matrix or data.frame of (new) observations having the same ncol and same colnames as the X of fitting observations.
The number of components to be considered in the model to perform the predictions. By default, all components computed in MBPLS are considered.
further arguments passed to or from other methods.
coef.MBPLS MBValidation
coef.MBPLS
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)
Run the code above in your browser using DataLab