Description Usage Arguments Examples
This function can be used to make predictions from one original data space to the other. Prediction direction can be forward, meaning X to Y direction and backward, meaning Y to X prediction.
1 2 |
object |
A plsr object. |
new_data |
The data from which you want to predict. |
direction |
The direction of prediction. Default is "forward" meaning X to Y. Every other argument will result in backward prediction. |
... |
Additional arguments. |
1 2 3 4 5 | plsr_obj = pls(rating_data,tracking_data,10,10)
prediction=predict(plsr_obj,runif(7,1,101),"forward")
#visualizing results with face tracking data specific function
plsr:::plot_frame(prediction)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.