predict.o2m: Predicts X or Y

Description Usage Arguments Details Value Examples

View source: R/OmicsPLS.R

Description

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

Usage

1
2
## 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

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

OmicsPLS documentation built on May 19, 2021, 5:08 p.m.