predictPLSfromData | R Documentation |
predict 2 Block-PLS from new data
predictPLSfromData(pls, x, y, ncomp = NULL)
pls |
output of pls2B |
x |
data in the same format as in original pls2B (for landmarks this can be an array or a matrix and for other data a matrix of a vector) |
y |
data in the same format as in original pls2B (for landmarks this can be an array or a matrix and for other data a matrix of a vector) |
ncomp |
number of (latent) components to use for prediction. |
returns an array/matrix/vector of predictions - depending on input for computing pls
either x or y must be missing
pls2B, getPLSscores,predictPLSfromScores
##see examples in pls2B
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.