plsreg1(x, y, nc = 2, cv = FALSE)
FALSE
by default)."plsreg1"
, basically a list with the following elements:cv=TRUE
nc
to be extracted is 2.
The argument x
may contain missing data. Conversely, the argument y
must not contain missing values.
The data is scaled to standardized values (mean=0, variance=1).
The argument cv
gives the option to perform leave-one-out cross validation to choose the best number of PLS components.print.plsreg1
, plot.plsreg1
, plsreg2
.## example of PLSR1 with the vehicles dataset
## predictand variable: price of vehicles
data(vehicles)
pls1 <- plsreg1(vehicles[,1:12], vehicles[,13], cv=TRUE)
pls1
plot(pls1)
Run the code above in your browser using DataLab