Hi I am looking to apply an OPLS-DA model to a separate dataset. As far as I can tell there is only the predict() function for applying the model and it only outputs the predicted class of the data. We are looking to calculate the exact scores of this separate dataset for plotting and have tried manual matrix multiplication of our data with the model coefficients or model loadings but that didn't work correctly. Is there any way to calculate these scores?
Any help is much appreciated!