plsreg2(X, Y, nc = 2)
"plsreg2"
, basically a list with the following elements:nc
is 2.
The data is scaled to standardized values (mean=0, variance=1).
No missing data are allowed.
Argument Y
must contain more than one variable. If Y
is a vector, you may use the function plsreg1
.print.plsreg2
, plot.plsreg2
, plsreg1
.## example of PLSR2 with the vehicles dataset
data(vehicles)
pls2 <- plsreg2(vehicles[,1:12], vehicles[,13:16])
pls2
plot(pls2)
Run the code above in your browser using DataLab