predict.o2m: Predicts X or Y

Description Usage Arguments Value Examples

View source: R/O2PLS.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

Value

Predicted Data

Examples

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

selbouhaddani/O2PLS documentation built on May 29, 2019, 5:53 p.m.