Learn R Programming

ConsensusOPLS (version 1.1.0)

predict: Model prediction

Description

Predicts the response on new data with a fitted model.

Usage

predict(object, newdata = NULL, nOcomp = NULL)

# S4 method for ConsensusOPLS predict(object, newdata = NULL, nOcomp = NULL)

Arguments

object

An object of class ConsensusOPLS.

newdata

A list of data frames of new data to predict. If omitted, the fitted values in object are returned.

nOcomp

Number of Y-orthogonal components to consider. Default, NULL, the number of Y-orthogonal components in the optimal model.