powered by
Predicts X or Y based on new data on Y or X
# S3 method for o2m predict(object, newdata, XorY = c("X", "Y"), ...)
Predicted Data
List. Should be of class o2m.
o2m
New data, which one of X or Y is specified in XorY.
XorY
Character specifying whether newdata is X or Y.
newdata
For compatibility
Prediction is done after correcting for orthogonal parts.
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