Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

predictPLSfromData

predict 2 Block-PLS from new data


Description

predict 2 Block-PLS from new data

Usage

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

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.

Value

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

Note

either x or y must be missing

See Also

Examples

##see examples in pls2B

Morpho

Calculations and Visualisations Related to Geometric Morphometrics

v2.8
GPL-2
Authors
Stefan Schlager [aut, cre, cph], Gregory Jefferis [ctb], Dryden Ian [cph]
Initial release
2020-02-26

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.