predict.o2m {OmicsPLS}R Documentation

Predicts X or Y

Description

Predicts X or Y based on new data on Y or X

Usage

## S3 method for class 'o2m'
predict(object, newdata, XorY = c("X", "Y"), ...)

Arguments

object

List. Should be of class o2m.

newdata

New data, which one of X or Y is specified in XorY.

XorY

Character specifying whether newdata is X or Y.

...

For compatibility

Details

Prediction is done after correcting for orthogonal parts.

Value

Predicted Data

Examples

predict(o2m(scale(1:10), scale(1:10), 1, 0, 0), newdata = scale(1:5), XorY = "X")

[Package OmicsPLS version 2.0.2 Index]