Learn R Programming

OmicsPLS (version 2.1.0)

predict.o2m: Predicts X or Y

Description

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

Usage

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

Value

Predicted Data

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.

Examples

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

Run the code above in your browser using DataLab