predict: Model prediction

predictR Documentation

Model prediction

Description

Predicts the response on new data with a fitted model.

Usage

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

## S4 method for signature '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.


ConsensusOPLS documentation built on April 3, 2025, 11:16 p.m.