predict.mvr {pls.pcr}R Documentation

MVR predictions

Description

Prediction for MVR (PCR, PLS) models. New responses are predicted using a previously defined model and a new matrix of independent observations.

Usage

predict.mvr(object, newX, nlv, ...)

Arguments

object a MVR model
newX a matrix of new independent observations
nlv the number of latent variables (optional)
... not used currently.

Value

Predicted values are returned.

See Also

plot.mvr summary.mvr

Examples

data(NIR)
attach(NIR)
nir.mvr <- mvr(Xtrain, Ytrain, 2)
nir.predictions <- predict(nir.mvr, Xtest)

[Package Contents]