Learn R Programming

Morpho (version 2.12)

predictPLSfromData: predict 2 Block-PLS from new data

Description

predict 2 Block-PLS from new data

Usage

predictPLSfromData(pls, x, y, ncomp = NULL)

Value

returns an array/matrix/vector of predictions - depending on input for computing pls

Arguments

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.

See Also

pls2B, getPLSscores,predictPLSfromScores

Examples

Run this code
##see examples in pls2B

Run the code above in your browser using DataLab