predict.o2m | R Documentation |
Predicts X or Y based on new data on Y or X
## S3 method for class 'o2m'
predict(object, newdata, XorY = c("X", "Y"), ...)
object |
List. Should be of class |
newdata |
New data, which one of X or Y is specified in |
XorY |
Character specifying whether |
... |
For compatibility |
Prediction is done after correcting for orthogonal parts.
Predicted Data
predict(o2m(scale(1:10), scale(1:10), 1, 0, 0), newdata = scale(1:5), XorY = "X")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.